LinuxCommandLibrary

gh-extension

Manage extensions for the GitHub CLI.

TLDR

Initialize a new GitHub CLI extension project in a directory of the same name

$ gh extension create [extension_name]
copy


Install an extension from a GitHub repository
$ gh extension install [owner]/[repository]
copy


List installed extensions
$ gh extension list
copy


Upgrade a specific extension
$ gh extension upgrade [extension_name]
copy


Upgrade all extensions
$ gh extension upgrade --all
copy


List installed extensions
$ gh extension list
copy


Remove an extension
$ gh extension remove [extension_name]
copy


Display help about a subcommand
$ gh extension [subcommand] --help
copy

SYNOPSIS

gh extension [flags]

DESCRIPTION

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.

See the list of available extensions at https://github.com/topics/gh-extension ⟨https://github.com/topics/gh-extension⟩

COMMANDS

gh-extension-create(1)

Create a new extension

gh-extension-install(1)

Install a gh extension from a repository

gh-extension-list(1)

List installed extension commands

gh-extension-remove(1)

Remove an installed extension

gh-extension-upgrade(1)

Upgrade installed extensions

SEE ALSO

gh(1)

Copied to clipboard