Forrest logo
back to the gh tool

gh-extension:tldr:be942

gh-extension: Install an extension from a GitHub repository.
$ gh extension install ${owner}/${repository}
try on your machine

The command gh extension install ${owner}/${repository} is used to install a GitHub extension. Here's how it works:

  • gh is the official command-line tool provided by GitHub, known as GitHub CLI.
  • extension is a subcommand that allows you to interact with GitHub extensions. Extensions are additional tools or features created by the GitHub community to enhance the functionality of GitHub CLI.
  • install is a subcommand of gh extension, used to install a specific extension.
  • ${owner} refers to the owner or organization of the extension repository on GitHub. It is a placeholder that needs to be replaced with the actual owner name in the command.
  • ${repository} refers to the repository name of the extension on GitHub. Like ${owner}, it is also a placeholder that needs to be replaced with the actual repository name in the command.

So, overall, the command installs a GitHub extension by specifying the owner and repository name of the extension you want to install.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gh tool