craftr workflow run
Run one or more workflows (or every workflow with --all) and aggregate the results. Prints a JSON summary report on stdout, a human summary on stderr, and exits 1 if any workflow failed (130 if cancelled).
Usage
craftr workflow run [<workflow>...] [--all] --env <api>=<env> [--input ...] [--concurrency <n>] [--on-failure halt|continue] [--full-output <file>] [--trust]Flags
| Flag | Description |
|---|---|
--all | Run every workflow in the project. Mutually exclusive with named workflows. |
--env-erequiredrepeatable | Bind an environment to an API: <api>=<env>. Repeat once per API the run touches (the union across a batch). |
--inputrepeatable | Workflow input: [<workflow>:]<key>=<value>. Without a workflow prefix it applies to every workflow in the batch. |
--concurrency | Workflows in flight at once (default 4). 1 runs them sequentially. |
--on-failure | halt stops starting new workflows after a failure; continue (default) runs them all. Separate from a workflow file's own onFailure, which governs blocks within a run. |
--verbose-v | Progress and traces to stderr: -v workflow level, -vv block logs, -vvv debug. |
--full-output | Write the complete run result (every block and response) to this file. Omitted, that detail is discarded. |
--trust | Allow this project's scripts to run for this invocation only. Never saved. |
Examples
craftr workflow run pet-lifecycle --env petstore-api=prodcraftr workflow run publish-and-verify -e petstore-api=prod -e catalog=stagingcraftr workflow run --all -e petstore-api=prod -e catalog=staging