1 min read
gh pr
Work with GitHub pull requests.
General commands
Targeted commands
- gh pr checkout
- gh pr checks
- gh pr close
- gh pr comment
- gh pr diff
- gh pr edit
- gh pr lock
- gh pr merge
- gh pr ready
- gh pr reopen
- gh pr revert
- gh pr review
- gh pr unlock
- gh pr update-branch
- gh pr view
Options
-R, --repo <[HOST/]OWNER/REPO>
Select another repository using the [HOST/]OWNER/REPO format
Examples
$ gh pr checkout 353
$ gh pr create --fill
$ gh pr view --webSee also
Last updated Oct 08, 2026