Skip to main content

Teams CLI Commands

Manage teams in your EventCatalog from the command line.

getTeam​

Returns a team from EventCatalog by its ID

Arguments:

NameTypeRequiredDescription
idstringYesThe ID of the team to retrieve

Examples:

# Get a team
npx @eventcatalog/sdk getTeam "platform-team"

getTeams​

Returns all teams from EventCatalog

Arguments: None

Examples:

# Get all teams
npx @eventcatalog/sdk getTeams

writeTeam​

Writes a team to EventCatalog

Arguments:

NameTypeRequiredDescription
teamjsonYesTeam object with id, name, and markdown
optionsjsonNoOptions: {path?, override?}

rmTeamById​

Removes a team by its ID

Arguments:

NameTypeRequiredDescription
idstringYesThe ID of the team to remove

Examples:

# Remove a team
npx @eventcatalog/sdk rmTeamById "platform-team"