Skip to main content
View as Markdown

Messages CLI Commands

Manage messages in your EventCatalog from the command line.

getProducersAndConsumersForMessage

Returns the producers and consumers (services) for a given message

Arguments:

NameTypeRequiredDescription
idstringYesThe ID of the message
versionstringNoSpecific version

getConsumersOfSchema

Returns services that consume a given schema

Arguments:

NameTypeRequiredDescription
schemaPathstringYesPath to the schema file

getProducersOfSchema

Returns services that produce a given schema

Arguments:

NameTypeRequiredDescription
schemaPathstringYesPath to the schema file

getOwnersForResource

Returns the owners (users/teams) for a given resource

Arguments:

NameTypeRequiredDescription
idstringYesThe ID of the resource
versionstringNoSpecific version

Examples:

# Get owners for a resource
npx @eventcatalog/cli getOwnersForResource "OrderService"