DOKK / manpages / debian 12 / gh / gh-extension-install.1.en
GH-EXTENSION-INSTALL(1) GitHub CLI manual GH-EXTENSION-INSTALL(1)

gh-extension-install - Install a gh extension from a repository

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 github.com.

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

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

--pin <string>
pin extension to a release tag or commit ref

$ gh extension install owner/gh-extension
$ gh extension install https://git.example.com/owner/gh-extension
$ gh extension install .

gh-extension(1)

Feb 2023