Skip to content

CIRCE / DOCUMENTATION

circe dev, start, build

Run during development, run in production, validate in CI.

Documentation menu
On this page

All three load circe.config.ts, validate the environment and scan modules.

circe dev

Runs start as a child process under a supervisor. It watches scanRoot and circe.config.ts, and on a change (debounced) sends SIGTERM to the child and starts it again. SIGINT and SIGTERM stop both.

circe start

The production runner. Logs in (or starts the HTTP server), registers commands and routes interactions. SIGINT and SIGTERM trigger a graceful shutdown bounded by shutdownTimeoutMs. A fatal startup error prints the diagnostic to stderr and exits 1.

circe build

Stops after validation, without logging in. Exit 0 on success, 1 on a contract violation.

circe build --format json

Use it in CI. It needs the environment schema to be satisfiable, so give CI placeholder values for required variables.