Text of cli.github.com › manual › gh_pr as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

GitHub CLI | Take GitHub to the command line

CLI manual gh pr Work with GitHub pull requests. To wait for a pull request on github.com to be reviewed, merged, or closed, use gh event listen instead of polling. Changes made before the listener starts are not reported, so read the pull request once it is listening. General commands gh pr create gh pr list gh pr status 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 --web See also gh