Start a run of a workflow from the terminal.
Syntax
$ vela workflows run <name> [input]$ vela workflows run send-welcome-email '{"userId":"abc123"}'
$ vela workflows run send-welcome-email '{"userId":"abc123"}' -t productionname is the workflow’s name as given in its defineWorkflow spec, and input is its input as JSON.
The run is queued, and the running app picks it up. When there is an app to pick it up, the command watches the run for a few seconds and reports how far it got: completed, failed with its error, or started and still running. vela workflows list shows how it went after that. Locally, with vela dev not running, the run waits in the queue until it is.
Two outcomes are warnings rather than successes:
- The app does not define the workflow. The queue accepts any name; it is the app that knows which workflows exist, and it retries a run it has no definition for until the run is canceled. The command reports this with the
vela workflows cancelcommand that stops it. Check the name, or deploy the code that defines the workflow. - Nothing picked the run up. The app may be stopped, busy with other runs, built without any workflows, or running with
WORKFLOWS_ENABLED=false.vela statusandvela logsshow which. The run stays queued.
There is no retry button for a run that has failed for good; starting a fresh run with the same input is how to try again.
Targets
Without -t, the run starts in the local database, the one you develop against. With -t, it starts in a deployed copy of the app over SSH, using the superuser credentials kept on the server:
$ vela workflows run sync-prices -t production
$ vela workflows run sync-prices -t staging
$ vela workflows run sync-prices -t preview:feature/mapsA run on a deployed target is executed by the code deployed there, not by the code in your checkout, and does whatever the workflow does to that target’s data: the emails it sends and the charges it makes are real.
Options
--idempotency-key <key>- Running again with the same key within 24 hours returns the first run instead of starting another--no-wait- Return once the run is queued, without watching it start-t, --target <target>- Which copy of the app to act on, defaults tolocal--server <ssh>- Server this target runs on, recorded on first use-i, --identity <file>- SSH private key to authenticate with--ssh-port <port>- SSH port--accept-host-keys- Trust an unknown host key on first connect (CI)
Pass --idempotency-key when a second run would do harm. If the connection drops before the command answers, running it again with the same key gives back the run that was already queued:
$ vela workflows run send-invoices -t production --idempotency-key invoices-2026-11