LinuxCommandLibrary

gh-extension

extend CLI functionality with community plugins

TLDR

Install an extension

$ gh extension install [owner]/[repo]
copy
List installed extensions
$ gh extension list
copy
Upgrade all extensions
$ gh extension upgrade --all
copy
Remove an extension
$ gh extension remove [name]
copy
Create a new extension
$ gh extension create [name]
copy

SYNOPSIS

gh extension command [options]

DESCRIPTION

gh extension manages GitHub CLI extensions. Extensions add new commands to gh, providing functionality beyond the built-in commands like accessibility testing, code review tools, or custom workflows.
Extensions are GitHub repositories containing executables that follow gh's extension protocol. They can be written in any language and distributed through GitHub. The extension system enables community contributions to gh.
gh extension provides full lifecycle management from installation to updates and removal.

PARAMETERS

install REPO

Install extension from repository.
list
List installed extensions.
upgrade
Upgrade installed extensions.
remove NAME
Uninstall an extension.
create NAME
Scaffold a new extension.
browse
Browse available extensions.
--all
Apply to all extensions (upgrade).
--help
Display help information.

CONFIGURATION

~/.local/share/gh/extensions/

Directory where installed extensions are stored and executed from.

CAVEATS

Extensions run with user permissions. Review extension code before installing. Extensions are not officially supported by GitHub.

HISTORY

The extension system was added to GitHub CLI in 2021, enabling community-driven expansion of gh functionality through a plugin architecture.

SEE ALSO

gh(1), gh-a11y(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community