1
0
mirror of synced 2025-12-22 03:16:52 -05:00

Document installing extensions using full repo URL

Related to https://github.com/cli/cli/issues/4201, documented the ability to install extensions using a full repo URL. Making a contribution to cli repo as well with similar documentation.
This commit is contained in:
Will Slattum
2021-09-03 11:58:06 -04:00
committed by GitHub
parent e28c4e5231
commit 383862cb2f

View File

@@ -35,6 +35,16 @@ gh extension install <em>owner/repo</em>
If you already have an extension by the same name installed, the command will fail. For example, if you have installed `octocat/gh-whoami`, you must uninstall it before installing `hubot/gh-whoami`.
{% note %}
**Note:** You can also provide the full repository URL for the extension when installing. If the full repository URL is not used, `gh` will install the extension using the hostname to which `gh` is currently authenticated. Using the full repository URL allows GitHub Enterprise users to install extensions from public GitHub.
```shell
gh extension install <em>https://github.com/owner/repo</em>
```
{% endnote %}
## Viewing installed extensions
To view all installed extensions, use the `extensions list` subcommand. The output will also tell you which extensions have updates available.