Improve docs on installing extensions

Better clarify the two extension types in the `extension install` docs.

Co-authored-by: Tyler McGoffin <jtmcg@github.com>
This commit is contained in:
Kynan Ware 2024-11-18 16:45:57 -07:00 committed by GitHub
parent bb3b64ad06
commit 1bc2bb8059
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -293,12 +293,12 @@ func NewCmdExtension(f *cmdutil.Factory) *cobra.Command {
Use: "install <repository>",
Short: "Install a gh extension from a repository",
Long: heredoc.Docf(`
Install a GitHub CLI extension from a GitHub repository.
Install a GitHub CLI extension from a GitHub or local repository.
The repository argument can be specified in %[1]sOWNER/REPO%[1]s format or as a full repository URL.
For GitHub repositories, the repository argument can be specified in %[1]sOWNER/REPO%[1]s format or as a full repository URL.
The URL format is useful when the repository is not hosted on github.com.
To install an in-development extension from a locally cloned repository, use %[1]s.%[1]s as the
For local repositories, often used while developing extensions, use %[1]s.%[1]s as the
value of the repository argument. Note the following:
- After installing an extension from a locally cloned repository, the GitHub CLI will