GH-EXTENSION(1)

πŸ’… GH-EXTENSION(1) β€” like, the whole gh extensions manual, bestie

okay so real quick: this is page one of the GitHub CLI manual, and it's all about gh-extension β€” managing your gh extensions. buckle up πŸŽ€


✨ NAME ✨

gh-extension β€” manage gh extensions 🧚


✨ SYNOPSIS ✨

gh extension [flags]

πŸ¦‹ DESCRIPTION πŸ¦‹

So. GitHub CLI extensions are literally just repositories that give you extra gh commands. that's it, that's the vibe. πŸ’–

The name of the extension repository must start with gh-, and it must contain an executable with that same name. every single argument you pass to the gh <extname> invocation gets forwarded straight to the gh-<extname> executable of the extension. no cap, everything gets passed along. ✨

🚨 important: an extension cannot override any of the core gh commands. if an extension name collides with a core gh command, you can still run it with gh extension exec <extname>.

When an extension is executed, gh checks for new versions once every 24 hours and shows you an upgrade notice. wanna turn those notices off? run gh help environment and it'll tell you how. πŸ‘‘

Now the serious part, bestie, listen up 🫢 β€” extensions are not verified, signed, or endorsed by GitHub. when you install or upgrade an extension, you are trusting its publisher. it is your responsibility to review the source and provenance of any extension before you use it. like, actually. pls be careful. 😭

Wanna see what's out there? the list of available extensions lives at ⟨https://github.com/topics/gh-extension⟩ 🌈


πŸ‘‘ AVAILABLE COMMANDS πŸ‘‘


πŸ’« ALIASES πŸ’«

  • gh extensions
  • gh ext

iykyk, both work πŸ’…


🌸 EXIT CODES 🌸

like the vibe check results, fr fr:

  • 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. don't come for me, I'm just the messenger 🫢

πŸ”— SEE ALSO πŸ”—

  • gh(1) β€” the main character, honestly πŸ‘‘

that's the whole page, bestie β€” every flag, every command, every exit code, not a single detail dropped πŸ’œ this gorgeous lil doc is from GitHub CLI v2.102.0, dated Oct 2026, and it's page GH-EXTENSION(1) of the GitHub CLI manual. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from