1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Add instruction for local extension install

This commit is contained in:
Will Slattum
2021-09-10 09:48:37 -04:00
committed by GitHub
parent f87e5e5d51
commit 530f0ac21e

View File

@@ -27,9 +27,11 @@ You can find extensions by browsing [repositories with the `gh-extension` topic]
## Installing extensions
To install an extension, use the `extensions install` subcommand. Replace the `repo` parameter with the repository of the extension. You can use the full URL, such as `https://github.com/octocat/gh-whoami`, or just the owner and repository, such as `octocat/gh-whoami`. If the owner and repository are used, `gh` will install the extension using the hostname to which `gh` is currently authenticated.
To install an extension, use the `extensions install` subcommand. Replace the `repo` parameter with the repository of the extension. You can use the full URL, such as `https://github.com/octocat/gh-whoami`, or just the owner and repository, such as `octocat/gh-whoami`.
The URL format is useful when installing extensions from a different host. For example, users on {% data variables.product.prodname_ghe_server %} should use the full repository URL to install extensions from GitHub.com or any other host.
If the owner and repository are used, `gh` will install the extension using the hostname to which `gh` is currently authenticated. The full URL format is useful when installing extensions from a different host. For example, users on {% data variables.product.prodname_ghe_server %} should use the full repository URL to install extensions from GitHub.com or any other host.
To install an extension in development from the current directory, use `.` as the value for the `repo` parameter.
```shell
gh extension install <em>repo</em>