Copy as Markdown[View as Markdown](/docs/cli/cli-export.md)

***

# Export CLI Commands

Manage export in your EventCatalog from the command line.

## export[​](#export "Direct link to export")

Export catalog resources to EventCatalog DSL (.ec) format

**Arguments:**

| Name    | Type    | Required | Description                                           |
| ------- | ------- | -------- | ----------------------------------------------------- |
| all     | boolean | No       | Export the entire catalog (all resource types)        |
| id      | string  | No       | Resource ID (omit to export all of the given type)    |
| version | string  | No       | Resource version (defaults to latest)                 |
| stdout  | boolean | No       | Print to stdout instead of writing a file             |
| output  | string  | No       | Output file path (defaults to \<id>.ec or catalog.ec) |

***
