Skip to main content

Custom Docs CLI Commands

Manage custom docs in your EventCatalog from the command line.

getCustomDoc​

Returns a custom doc from EventCatalog by its path

Arguments:

NameTypeRequiredDescription
pathstringYesPath to the custom doc

Examples:

# Get a custom doc
npx @eventcatalog/sdk getCustomDoc "/getting-started"

getCustomDocs​

Returns all custom docs from EventCatalog

Arguments:

NameTypeRequiredDescription
optionsjsonNoOptions: {path?}

Examples:

# Get all custom docs
npx @eventcatalog/sdk getCustomDocs

writeCustomDoc​

Writes a custom doc to EventCatalog

Arguments:

NameTypeRequiredDescription
customDocjsonYesCustom doc object with id, title, and markdown
optionsjsonNoOptions: {path?, override?}

rmCustomDoc​

Removes a custom doc by its path

Arguments:

NameTypeRequiredDescription
pathstringYesPath to the custom doc to remove

Examples:

# Remove a custom doc
npx @eventcatalog/sdk rmCustomDoc "/getting-started"