OS Manuals

gh-extension(1)

gh-extension - Manage gh extensions

GH-EXTENSION(1) GitHub CLI manual GH-EXTENSION(1)

gh-extension - Manage gh extensions

gh extension [flags]

GitHub CLI extensions are repositories that provide additional gh commands.

The name of the extension repository must start with gh- and it must contain an executable of the same name. All arguments passed to the gh <extname> invocation will be forwarded to the gh-<extname> executable of the extension.

An extension cannot override any of the core gh commands. If an extension name conflicts with a core gh command, you can use gh extension exec <extname>.

When an extension is executed, gh will check for new versions once every 24 hours and display an upgrade notice. See gh help environment for information on disabling extension notices.

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

For the list of available extensions, see ⟨https://github.com/topics/gh-extension⟩.

Enter a UI for browsing, adding, and removing extensions

Create a new extension

Execute an installed extension

Install a gh extension from a repository

List installed extension commands

Remove an installed extension

Search extensions to the GitHub CLI

Upgrade installed extensions

gh extensions, gh ext

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.

gh(1)

Oct 2026

gh 2.103.3-r1 · os · ingested 2026-10-31