Developers

CLI reference

Initialize a definition, validate it locally and promote a reviewed plan from a terminal or CI.

CLI 1.0.0Documentation verified

Check the current identity

Use SIGNALCRANE_TOKEN for a scoped developer session. For a short-lived CI session, supply SIGNALCRANE_CI_BOOTSTRAP from the pipeline's secret store. Inspect the resolved scope before deploying.

npx --no-install signalcrane auth --json

Read machine output

A successful command exits 0. Exit 2 indicates invalid input or rejected validation, 3 indicates missing access, 4 indicates a conflict or stale review, 5 indicates a failed local assertion, and 6 indicates a transport, rate-limit, service or filesystem error. A JSON error includes the request ID when the server supplied one.

Preview and promote

Use --json in automation. Stop when a command exits unsuccessfully. Reuse the exact saved plan for deployment or revert and retain the result with the build.

npx --no-install signalcrane test --json
npx --no-install signalcrane preview --out wave7.plan.json --json
npx --no-install signalcrane deploy --plan wave7.plan.json --json
Checks and evidence