Skip to content

Commit 788bfe5

Browse files
Copilotcrwaters16hubwriterisaacmbrown
authored
Update authenticate-to-ghecom.md CLI section for Copilot CLI (Data-Resident Copilot GTM) (#60465)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: crwaters16 <78226508+crwaters16@users.noreply.github.com> Co-authored-by: hubwriter <hubwriter@github.com> Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com>
1 parent f8a3fd6 commit 788bfe5

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

content/copilot/how-tos/configure-personal-settings/authenticate-to-ghecom.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,23 +75,19 @@ If you ever need to switch to an account on {% data variables.product.prodname_d
7575

7676
{% endxcode %}
7777

78-
{% cli %}
78+
{% copilotcli %}
7979

8080
## Authenticating from the command line
8181

82-
To use the `gh-copilot` extension for the {% data variables.product.prodname_cli %}, you must:
82+
To use {% data variables.copilot.copilot_cli_short %}, you must:
8383

84-
1. Download and install the extension. To do this, you must be authenticated to an account on {% data variables.product.prodname_dotcom_the_website %}. See [AUTOTITLE](/copilot/managing-copilot/configure-personal-settings/installing-github-copilot-in-the-cli#installing-copilot-in-the-cli).
85-
1. Authenticate to the account on {% data variables.enterprise.data_residency_site %} where you receive your {% data variables.product.prodname_copilot_short %} license.
84+
1. Download and install {% data variables.copilot.copilot_cli_short %}. See [AUTOTITLE](/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli).
85+
1. Authenticate to the account on {% data variables.enterprise.data_residency_site %} where you receive your {% data variables.product.prodname_copilot_short %} license with `copilot login --host {% data variables.enterprise.data_residency_domain %}`.
8686

87-
{% data variables.product.prodname_dotcom_the_website %} is the default destination of {% data variables.product.prodname_cli %} requests. To use `gh copilot`, you must ensure requests are sent to {% data variables.enterprise.data_residency_site %}, where you receive your license. You have the following options:
88-
* Include the flag `--hostname SUBDOMAIN.ghe.com` in all `gh copilot` commands.
89-
* Set the `GH_HOST` environment variable to change the default host for all {% data variables.product.prodname_cli %} commands.
90-
* Sign out of {% data variables.product.prodname_dotcom_the_website %} with `gh auth logout`. However, you will need to sign back in to get updates to `gh-copilot`.
9187

92-
For general information on using the {% data variables.product.prodname_cli %} across platforms, see [AUTOTITLE](/github-cli/github-cli/using-multiple-accounts).
88+
For general information on using {% data variables.copilot.copilot_cli_short %}, see [AUTOTITLE](/copilot/how-tos/copilot-cli).
9389

94-
{% endcli %}
90+
{% endcopilotcli %}
9591

9692
{% visualstudio %}
9793

0 commit comments

Comments
 (0)