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

FlagDescription
--allRun every workflow in the project. Mutually exclusive with named workflows.
--env-erequiredrepeatableBind an environment to an API: <api>=<env>. Repeat once per API the run touches (the union across a batch).
--inputrepeatableWorkflow input: [<workflow>:]<key>=<value>. Without a workflow prefix it applies to every workflow in the batch.
--concurrencyWorkflows in flight at once (default 4). 1 runs them sequentially.
--on-failurehalt 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-vProgress and traces to stderr: -v workflow level, -vv block logs, -vvv debug.
--full-outputWrite the complete run result (every block and response) to this file. Omitted, that detail is discarded.
--trustAllow this project's scripts to run for this invocation only. Never saved.

Examples

craftr workflow run pet-lifecycle --env petstore-api=prod
craftr workflow run publish-and-verify -e petstore-api=prod -e catalog=staging
craftr workflow run --all -e petstore-api=prod -e catalog=staging

See also