EventCatalog CLI
The EventCatalog CLI allows you to interact with your EventCatalog directly from the command line. Execute any SDK function without writing code.
Installation
You can run the CLI directly using npx without installing:
npx @eventcatalog/cli <function> [args...]
Or install globally:
npm install -g @eventcatalog/cli
Then use the eventcatalog command:
eventcatalog <function> [args...]
Basic Usage
Specifying the catalog directory
By default, the CLI uses the current directory. Use --dir to specify a different path:
npx @eventcatalog/cli --dir /path/to/catalog getEvents
Listing available functions
npx @eventcatalog/cli list