gh workflow run Trigger a GitHub Actions workflow manually

Starts a workflow that has a workflow_dispatch trigger, optionally on a chosen branch and with input values. Use it for deploys and other on-demand jobs.

Synopsis

gh workflow run {WORKFLOW | ID} [FLAGS]
gh workflow list

Common options

Option or formWhat it does
-r, --ref BRANCHBranch or tag to run the workflow on
-f, --raw-field KEY=VALUESet a workflow input as text (repeatable)
-F, --field KEY=VALUESet an input, with @file to read from a file
--jsonRead the inputs as JSON from standard input
gh workflow listA separate command that lists the workflows in the repository

Examples

See the available workflows
gh workflow list
Build   active  1234
Deploy  active  5678
Run a workflow
gh workflow run deploy.yml
Run it on a branch with an input
gh workflow run deploy.yml --ref release/1.2 -f environment=staging
Then watch it
gh run watch

Notes

See also

Last reviewed 2026-10-09.