Skip to main content

EventCatalog Editor CLI reference

View as Markdown

Run the editor with:

npx @eventcatalog/editor

Requirements

  • Node.js 22 or later
  • Git
  • An EventCatalog directory containing eventcatalog.config.js

Options

OptionDescriptionDefault
--catalog <path>Path to the EventCatalog root to edit.Current directory, a detected child catalog, or browser selection
--port <n>Port for the editor server.3900
--eventcatalog-port <n>Port where local EventCatalog preview is running.3000
--no-openStart the editor without opening the browser automatically.Opens browser
--help, -hShow CLI help.
--version, -vShow the installed editor version.

Examples

Run from a catalog directory:

npx @eventcatalog/editor

Run against a specific catalog:

npx @eventcatalog/editor --catalog /Users/me/dev/my-catalog

Use a different editor port:

npx @eventcatalog/editor --port 3999

Use a different EventCatalog preview port:

npx @eventcatalog/editor --eventcatalog-port 3001

Start without opening a browser:

npx @eventcatalog/editor --no-open