GH(1)

✨ NAME ✨

so like, gh β€” the GitHub CLI, bestie πŸ’… (this whole thing lives in the GitHub CLI manual, and honestly? iconic.)


🌸 SYNOPSIS 🌸

gh <command> <subcommand> [flags]

that's it. that's the whole vibe check. command, subcommand, flags, go 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

Work seamlessly with GitHub from the command line. literally just you, your terminal, and GitHub being besties. no browser tabs, no chaos, just vibes ✨


πŸ‘‘ CORE COMMANDS πŸ‘‘

okay so these are the main characters. the ones you'll actually use every day. slay.

  • gh-auth(1) β€” Authenticate gh and git with GitHub πŸ’³ (log in, babes)
  • gh-browse(1) β€” Open repositories, issues, pull requests, and more in the browser 🌐
  • gh-codespace(1) β€” Connect to and manage codespaces ☁️
  • gh-discussion(1) β€” Work with GitHub Discussions (preview) πŸ’¬
  • gh-gist(1) β€” Manage gists πŸ“
  • gh-issue(1) β€” Manage issues πŸ›
  • gh-org(1) β€” Manage organizations 🏒
  • gh-pr(1) β€” Manage pull requests πŸ”€
  • gh-project(1) β€” Work with GitHub Projects. πŸ“‹ (yes with the period, she's fancy)
  • gh-release(1) β€” Manage releases πŸš€
  • gh-repo(1) β€” Manage repositories πŸ“¦
  • gh-skill(1) β€” Install and manage agent skills (preview) 🧠

πŸ”₯ GITHUB ACTIONS COMMANDS πŸ”₯

the CI/CD girlies. automation ate, no cap.

  • gh-cache(1) β€” Manage GitHub Actions caches πŸ—„οΈ
  • gh-run(1) β€” View details about workflow runs πŸƒβ€β™€οΈ
  • gh-workflow(1) β€” View details about GitHub Actions workflows βš™οΈ

πŸ’œ ADDITIONAL COMMANDS πŸ’œ

the supporting cast. still iconic. still ate. πŸ“


πŸŽ€ OPTIONS πŸŽ€

  • --version β€” Show gh version πŸ“Œ (the "who am I" of flags)

πŸ’€ EXIT CODES πŸ’€

ngl these matter, bestie. your scripts will be reading them. pay attention πŸ‘€

  • 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. (fr fr, always check the subcommand's own help β€” iykyk)

🌈 EXAMPLE 🌈

$ gh issue create
$ gh repo clone cli/cli
$ gh pr checkout 321

look at her go. three commands, zero stress, main character energy only πŸ’…βœ¨


and that's the whole page, bestie 🫢 this beauty is GitHub CLI v2.102.0, dated Oct 2026 β€” go forth and gh your little heart out, mwah πŸ’–πŸŽ€

πŸ“¦ where this page comes from