Skip to content

Commit 383862c

Browse files
authored
Document installing extensions using full repo URL
Related to cli/cli#4201, documented the ability to install extensions using a full repo URL. Making a contribution to cli repo as well with similar documentation.
1 parent e28c4e5 commit 383862c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/github-cli/github-cli/using-github-cli-extensions.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ gh extension install <em>owner/repo</em>
3535

3636
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`.
3737

38+
{% note %}
39+
40+
**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.
41+
42+
```shell
43+
gh extension install <em>https://github.com/owner/repo</em>
44+
```
45+
46+
{% endnote %}
47+
3848
## Viewing installed extensions
3949

4050
To view all installed extensions, use the `extensions list` subcommand. The output will also tell you which extensions have updates available.

0 commit comments

Comments
 (0)