| title | Installing GitHub Copilot in the CLI | |||||
|---|---|---|---|---|---|---|
| intro | Learn how to install {% data variables.copilot.copilot_cli_short %} so that you can get suggestions and explanations for the command line. | |||||
| versions |
|
|||||
| topics |
|
|||||
| shortTitle | Install Copilot in the CLI | |||||
| redirect_from |
|
- Access to {% data variables.product.prodname_copilot %}. See AUTOTITLE.
- {% data variables.product.prodname_cli %} installed. {% data reusables.cli.cli-installation %}
If you have access to {% data variables.product.prodname_copilot %} via your organization or enterprise, you cannot use {% data variables.copilot.copilot_cli_short %} if your organization owner or enterprise administrator has disabled {% data variables.copilot.copilot_cli_short %}. See AUTOTITLE.
-
If you have not already authenticated to the {% data variables.product.prodname_cli %}, run the following command in your terminal.
gh auth login
-
To install the {% data variables.copilot.copilot_cli_short %} extension, run the following command.
gh extension install github/gh-copilot
After installing the {% data variables.copilot.copilot_cli_short %} extension, you can update at any time by running:
gh extension upgrade gh-copilot