Skip to Content
New to cms0? Start with the hosted, self-hosted, or app integration path.
CLICommands

The cms0 binary ships with @cms0/cms0.

It reads cms0.config.*, builds a schema descriptor from the configured entry file, writes generated descriptor files under .cms0, and publishes the schema when an API base URL is configured.

cms0 dev, cms0 watch, and cms0 build are the current public CLI modes.

cms0 dev

Use this while building locally.

Terminal
pnpm exec cms0 dev

dev builds once, starts a browser descriptor sidecar, and watches the entry file for changes.

cms0 watch

Use this when you want the watcher behavior without treating it as the main dev command.

Terminal
pnpm exec cms0 watch

watch builds once, starts the descriptor sidecar, and rebuilds when the entry file changes.

cms0 build

Use this in CI or before deploying.

Terminal
pnpm exec cms0 build

build creates the bundled descriptor output and publishes it to the configured runtime.

Use a custom config file

Terminal
pnpm exec cms0 build --config ./cms0.config.ts

Success check

The command is working when it finds your config, resolves the entry file, and publishes the schema to the runtime shown by CMS0_API_BASE_URL.