GH-EXTENSION-CREATE(1)

🌸 NAME 🌸

okay bestie, welcome to GH-EXTENSION-CREATE(1) from the GitHub CLI manual πŸ’– this page is literally about one thing: create a new extension. slay.


✨ SYNOPSIS ✨

gh extension create [<name>] [flags]

that’s the whole vibe. short, iconic, to the point πŸŽ€


πŸ’… OPTIONS πŸ’…

  • --precompiled <string> β€” create a precompiled extension, no cap. the possible values are exactly go and other. pick your fighter 🫢

πŸ’€ EXIT CODES πŸ’€

bestie, here’s the vibe check on what the exit codes mean:

  • 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.

πŸ”₯ EXAMPLE πŸ”₯

# Use interactively
$ gh extension create

# Create a script-based extension
$ gh extension create foobar

# Create a Go extension
$ gh extension create --precompiled=go foobar

# Create a non-Go precompiled extension
$ gh extension create --precompiled=other foobar

look at those examples go πŸ‘‘ every single one is doing its little main character thing.


πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ this lil page is from GitHub CLI v2.102.0, dated Oct 2026 β€” iconic, timestamped, and officially done.

πŸ“¦ where this page comes from