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 Temporal workflows defined in *.op.ts files. Running an Op spawns a Temporal worker process and submits the workflow. Requires @intentius/chant-lexicon-temporal and a reachable Temporal server.

Connection settings come from chant.config.ts under temporal.profiles. See Worker Profiles for configuration.

Start an Op: spawns the compiled worker for that Op and submits the workflow to Temporal. Polls status every 3 seconds until the workflow completes or fails.

Terminal window
chant run alb-deploy
chant run alb-deploy --profile cloud
chant run alb-deploy --report # print deployment report instead of running

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

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
-p, --profile <name>Temporal worker profile to use (from chant.config.ts)
--reportPrint a deployment report instead of running (run <name> only)
--forceRequired for run cancel
CodeMeaning
0Success (workflow completed or command succeeded)
1Error (workflow failed, Op not found, Temporal unreachable)