gh extension install

gh extension install <repository> [flags]

Install a GitHub repository locally as a GitHub CLI extension.

The repository argument can be specified in OWNER/REPO format as well as a full URL. The URL format is useful when the repository is not hosted on

To install an extension in development from the current directory, use . as the value of the repository argument.

For the list of available extensions, see


force upgrade extension, or ignore if latest already installed
--pin <string>
pin extension to a release tag or commit ref


$ gh extension install owner/gh-extension
$ gh extension install
$ gh extension install .

See also