LinuxCommandLibrary

gh-run

Manage GitHub Actions workflow runs

TLDR

List workflow runs

$ gh run list
copy
View run details
$ gh run view [run-id]
copy
Watch a run
$ gh run watch [run-id]
copy
Download artifacts
$ gh run download [run-id]
copy
Rerun failed jobs
$ gh run rerun [run-id] --failed
copy

SYNOPSIS

gh run command [options]

DESCRIPTION

gh run manages GitHub Actions workflow runs from the command line. It provides visibility into CI/CD execution including logs, status, and artifacts without visiting github.com.
The watch command provides live progress updates for running workflows. Download retrieves artifacts produced by workflows, and rerun enables retriggering workflows with options for full or partial reruns.

PARAMETERS

list

List recent workflow runs.
view RUN-ID
View run details.
watch RUN-ID
Watch run progress live.
download RUN-ID
Download run artifacts.
rerun RUN-ID
Rerun a workflow run.
cancel RUN-ID
Cancel a running workflow.
--workflow NAME
Filter by workflow name.
--branch BRANCH
Filter by branch.
--failed
Only rerun failed jobs.
--help
Display help information.

CAVEATS

Requires Actions enabled on repository. Log access may be limited. Artifacts have retention limits.

HISTORY

gh run was added to the GitHub CLI alongside broader GitHub Actions integration, enabling workflow management from the command line.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community