# Rule Export & Import

The rule export and import functionality allows you to transfer rules by saving them as files. This is useful for:

* Backing up rules as files.
* Editing rule tables in Excel before importing.
* Sharing rules with external parties who don't have access to your space.
* Migrating rules across different environments or instances.

#### **Supported Formats**

The available export/import formats depend on the rule type:

| Rule Type        | JSON | XLSX | CSV |
| ---------------- | ---- | ---- | --- |
| Decision Table   | ✅    | ✅    | ❌   |
| Decision Tree    | ✅    | ❌    | ❌   |
| Scripting Rule   | ✅    | ❌    | ❌   |
| Decision Flow    | ✅    | ❌    | ❌   |
| Integration Flow | ✅    | ❌    | ❌   |
| Lookup Table     | ✅    | ✅    | ✅   |
| Rule Flow        | ✅    | ❌    | ❌   |

#### **Alternative: Cross-Space Rule Sharing**

**For direct space-to-space transfers:** If you need to share a rule to another space and you are a member of both spaces, you can use the **Share with Space** button. This allows you to directly share the same rule to another space instantly, without exporting and importing files.

For more information, see [Cross-Space Rule Sharing](/doc/rules/common-rule-features/cross-space-rule-sharing.md)

This documentation section includes detailed guides on how to **export and import rules**, providing step-by-step instructions to help you manage rule transfers efficiently.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.decisionrules.io/doc/rules/common-rule-features/rule-export-and-import.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
