GH-REPO(1)

πŸ’– gh-repo β€” manage repositories, bestie πŸ’–

okay so this is the gh manual page for gh repo, straight out of the GitHub CLI manual (yes, that's the manual name, we're being fancy today ✨). Sit down, grab a strawberry πŸ“, and let's get into it.


✨ SYNOPSIS ✨

gh repo <command> [flags]

that's the whole vibe. you pick a <command> and then you slap some [flags] on it. iconic.


πŸ¦‹ DESCRIPTION πŸ¦‹

Work with GitHub repositories. that's it, that's the whole thing. literally your entire repo era, handled from the terminal πŸ’…


🌸 GENERAL COMMANDS 🌸

these are the big main-character ones β€” the ones you'll reach for like every single day:

  • gh-repo-create(1) β€” Create a new repository ✨ brand new repo, no cap
  • gh-repo-list(1) β€” List repositories owned by user or organization πŸ‘‘

πŸŽ€ TARGETED COMMANDS πŸŽ€

these ones are for when you've got a specific repo in mind. targeted. laser focused. iykyk:


πŸ’… EXIT CODES πŸ’…

the vibe check results, fr fr:

  • 0: Successful execution πŸŽ‰ slay
  • 1: Error 😭
  • 2: Command canceled πŸ™ˆ
  • 4: Authentication required πŸ” (go log in bestie)
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. β€” like, don't assume these four are the whole story, always check the specific command's help 🫢

🌈 EXAMPLE 🌈

$ gh repo create
$ gh repo clone cli/cli
$ gh repo view --web

look at that. creating, cloning, and yeeting the repo view straight into your browser with --web. obsessed. πŸ”₯


⭐ SEE ALSO ⭐

  • gh(1) β€” the parent page, the icon, the main character πŸ‘‘

and that's the tea, bestie πŸ§šπŸ’œ

this little tour was brought to you by GitHub CLI v2.102.0, dated Oct 2026 β€” go forth and manage those repositories πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from