Skip to content

Commit 6ba0a02

Browse files
mislavSarah Edwards
andauthored
Improve GitHub CLI setup instructions for GHES (github#34681)
Co-authored-by: Sarah Edwards <skedwards88@github.com>
1 parent 9c5322d commit 6ba0a02

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

content/github-cli/github-cli/quickstart.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@ shortTitle: Quickstart
2020
## Getting started
2121

2222
1. [Install](https://github.com/cli/cli#installation) {% data variables.product.prodname_cli %} on macOS, Windows, or Linux.
23-
1. In the command line, authenticate to {% data variables.product.company_short %}.
23+
1. In the command line, authenticate to {% data variables.product.company_short %}.{% ifversion not fpt or ghec %} Replace `HOSTNAME` with the name of {% data variables.location.product_location %}. For example, `octo-inc.ghe.com`.{% endif %}
2424

25+
{% ifversion fpt or ghec %}
2526
```shell
2627
gh auth login
2728
```
28-
29-
{% ifversion not fpt or ghec %}
30-
To authenticate to {% data variables.location.product_location %}, use the `--hostname` flag.
31-
29+
{% else %}
3230
```shell
3331
gh auth login --hostname HOSTNAME
3432
```
35-
3633
{% endif %}
3734
1. Start working with {% data variables.product.company_short %} in the command line. For example, find an issue to work on with `gh issue status` or `gh issue list --assignee @me`. Create a pull request with `gh pr create`. Review a pull request with `gh pr checkout`, `gh pr diff` and `gh pr review`.
3835

0 commit comments

Comments
 (0)