Events CLI Commands
Manage events in your EventCatalog from the command line.
getEvent
Returns an event from EventCatalog by its ID
Arguments:
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | The ID of the event to retrieve |
| version | string | No | Specific version to retrieve (supports semver) |
| options | json | No | Options object, e.g. {"attachSchema": true} |
Examples:
# Get the latest version of an event
npx @eventcatalog/cli getEvent "OrderCreated"
# Get a specific version
npx @eventcatalog/cli getEvent "OrderCreated" "1.0.0"
getEvents
Returns all events from EventCatalog
Arguments: None
Examples:
# Get all events
npx @eventcatalog/cli getEvents