GH-RUN-RERUN(1) GitHub CLI manual GH-RUN-RERUN(1)

# [NAME](#NAME)

gh-run-rerun - Rerun a run

# [SYNOPSIS](#SYNOPSIS)

**gh run rerun \[&lt;run-id&gt;] \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Rerun an entire run, only failed jobs, or a specific job from a run.

Note that due to historical reasons, the **--job** flag may not take what you expect. Specifically, when navigating to a job in the browser, the URL looks like this: **https://github.com/&lt;owner&gt;/&lt;repo&gt;/actions/runs/&lt;run-id&gt;/jobs/&lt;number&gt;**.

However, this **&lt;number&gt;** should not be used with the **--job** flag and will result in the API returning **404 NOT FOUND**. Instead, you can get the correct job IDs using the following command:

```
gh run view <run-id> --json jobs --jq '.jobs[] | {name, databaseId}'
```

You will need to use databaseId field for triggering job re-runs.

# [OPTIONS](#OPTIONS)

[**-d**, **--debug**](#d)

Rerun with debug logging

[**--failed**](#failed)

Rerun only failed jobs, including dependencies

[**-j**, **--job** **&lt;string&gt;**](#j)

Rerun a specific job ID from a run, including dependencies

# [OPTIONS INHERITED FROM PARENT COMMANDS](#OPTIONS_INHERITED_FROM_PARENT_COMMANDS)

[**-R**, **--repo** **&lt;\[HOST/\]OWNER/REPO&gt;**](#R)

Select another repository using the \[HOST/]OWNER/REPO format

# [EXIT CODES](#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 information.

# [SEE ALSO](#SEE_ALSO)

[**gh-run(1)**](/man/os/gh/gh-run.1)

Oct 2026

---

Document: gh-run-rerun(1) from gh 2.103.3-r0 (Chainguard OS)
Source: https://github.com/cli/cli
