GH-RUN-RERUN(1)
π NAME π
gh-run-rerun β rerun a run, bestie. that's it. that's the whole vibe β¨
π SYNOPSIS π
gh run rerun [<run-id>] [flags]
π¦ DESCRIPTION π¦
okay so picture this: your run flopped. tragic. π you can rerun the entire run, rerun only the failed jobs, or rerun one specific job from a run. pick your fighter π
now, real talk β there's a lil historical quirk you NEED to know about. the --job flag might not take what you're expecting. lowkey a trap. π
specifically: when you're navigating to a job in the browser, the URL looks like this:
https://github.com/<owner>/<repo>/actions/runs/<run-id>/jobs/<number>
and likeβ¦ that <number> is not the thing you feed to --job. it's giving "wrong ID energy" and the API will just straight up hand you back 404 NOT FOUND. π do not do this.
instead, get the correct job IDs with this command right here:
gh run view <run-id> --json jobs --jq '.jobs[] | {name, databaseId}'
you need to use the databaseId field for triggering job re-runs. that's the one, periodt. π
β¨ OPTIONS β¨
-d,--debugβ rerun with debug logging π (for when you need the tea)--failedβ rerun only the failed jobs, including dependencies π«Ά (just the flops, none of the slays)-j,--job <string>β rerun a specific job ID from a run, including dependencies π―
πΈ OPTIONS INHERITED FROM PARENT COMMANDS πΈ
-R,--repo <[HOST/]OWNER/REPO>β select another repository using the[HOST/]OWNER/REPOformat. slay across repos, no cap π
π₯ EXIT CODES π₯
0: Successful execution β1: Error π2: Command canceled π4: Authentication required π
NOTE: specific commands may have additional exit codes. refer to the command's help for more info, iykyk π§
π SEE ALSO π
gh-run(1) β go check out the whole family, they're iconic π
that's the whole page bestie!! GitHub CLI v2.102.0, dated Oct 2026 β mwah, go rerun something and make it everyone's problem πβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms