GH-PR(1)

πŸ’… NAME

Okay so bestie, gh-pr is literally your main character moment for Managing pull requests β€” like, the whole PR vibe, handled. πŸŽ€

(This is the GitHub CLI manual, btw β€” gh's PR corner of the world. ✨)


✨ SYNOPSIS

gh pr <command> [flags]

That's it. gh pr, then whatever command your heart desires, then whatever flags you wanna sprinkle on top. Simple slay. πŸ’…


πŸ¦‹ DESCRIPTION

Work with GitHub pull requests. That's the whole assignment. Pull requests! On GitHub! From your terminal! Ngl it's giving productivity icon. πŸ‘‘


πŸ‘‘ GENERAL COMMANDS

These are the big three β€” the ones you'll be living in fr fr:

  • gh-pr-create(1) β€” makes a brand new pull request ✨
  • gh-pr-list(1) β€” shows you all the pull requests chillin' in a repository πŸ—‚οΈ
  • gh-pr-status(1) β€” shows the status of the pull requests that actually matter to you rn πŸ‘€

🎯 TARGETED COMMANDS

Now the "you already know which PR you're after" squad β€” the targeted ones, iykyk πŸ’–:


πŸ’œ OPTIONS

  • -R, --repo <[HOST/]OWNER/REPO> β€” picks a different repository, using the [HOST/]OWNER/REPO format. Not your usual repo? Not a problem, just point at the right one 🫑

πŸ”₯ EXIT CODES

Like, how did it go? The numbers tell you:

  • 0 β€” Successful execution πŸŽ‰ (slay)
  • 1 β€” Error πŸ’€
  • 2 β€” Command canceled πŸ™ˆ
  • 4 β€” Authentication required β€” like, who even are you rn, log in πŸ”
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. (Basically: check that specific command's help, bestie, don't come for me. πŸ’…)

🌸 EXAMPLE

Here's the vibe in action:

$ gh pr checkout 353
$ gh pr create --fill
$ gh pr view --web

Check out PR 353, create one with --fill, then peek at it straight in the browser with --web. Chef's kiss. πŸ‘¨β€πŸ³πŸ’‹


🌈 SEE ALSO

  • gh(1) β€” the mothership πŸ›Έ

Okay that's the whole page, bestie β€” GitHub CLI version v2.102.0, dated Oct 2026, and that's a wrap! πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from