Skip to content

chant run

chant run <name> [flags]
chant run list [flags]
chant run status <name> [flags]
chant run signal <name> <signal> [flags]
chant run cancel <name> [flags]
chant run log <name> [flags]

chant run starts and manages Op workflows — named, phased workflows defined in *.op.ts files.

chant run <name> runs local by default: the Op executes in-process with no Temporal server, worker, or built worker.ts. Pass --temporal to run against a Temporal cluster instead (worker spawn + workflow submission). One flag selects the runtime — no config is inspected. See Local vs Temporal for the trade-off.

Local mode covers phase sequencing, retries, activity profiles, and onFailure compensation. Gates, schedules, durable resume, and the run-management subcommands (list / status / log / signal / cancel) require --temporal and a reachable Temporal server. Connection settings come from chant.config.ts under temporal.profiles; see Worker Profiles.

Run an Op. Local by default — executes in-process, rendering each phase and step as it runs. With --temporal, spawns the compiled worker and submits the workflow to Temporal, polling status every 3 seconds until it completes or fails.

Terminal window
chant run alb-deploy # local executor (default)
chant run alb-deploy --json # structured result on stdout
chant run alb-deploy --temporal # run via Temporal
chant run alb-deploy --temporal --profile cloud
chant run alb-deploy --temporal --report # print deployment report instead of running

A gate or schedule in the Op fails fast in local mode with an actionable message — re-run with --temporal.

List all discovered Ops (*.op.ts files) with their current Temporal run status. Requires --temporal.

Terminal window
chant run list

Output columns: NAME, PHASES, TASK-QUEUE, DEPENDS, OVERVIEW, STATUS.

Show the current state of an Op’s latest workflow run.

Terminal window
chant run status alb-deploy

Send a named signal to unblock a gate step in a running workflow.

Terminal window
chant run signal alb-deploy gate-dns-delegation

The signal name must match the signalName passed to the gate() builder in the Op definition.

Cancel the active workflow run. Requires --force.

Terminal window
chant run cancel alb-deploy --force

Show run history for an Op.

Terminal window
chant run log alb-deploy
FlagDescription
--localRun with the local in-process executor — the default (run <name>)
--temporalRun via a Temporal cluster: gates, schedules, durable resume (run <name>)
--jsonEmit the structured run result as JSON on stdout (run <name>)
-p, --profile <name>Temporal worker profile to use (from chant.config.ts); implies Temporal mode
--reportPrint a deployment report instead of running (run <name> --temporal only)
--forceRequired for run cancel
CodeMeaning
0Success (workflow completed or command succeeded)
1Error (workflow failed, Op not found, Temporal unreachable)