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

More explicitly describe hostname inferred case

This commit is contained in:
Will Slattum
2021-09-09 16:11:17 -04:00
committed by GitHub
parent 1639d7252d
commit f87e5e5d51

View File

@@ -27,7 +27,7 @@ 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 full URL is not 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`. If the owner and repository are used, `gh` will install the extension using the hostname to which `gh` is currently authenticated.
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.