Prerequisites
- Access to GitHub Copilot. See What is GitHub Copilot?.
- GitHub CLI installed. Pour obtenir des instructions d’installation pour GitHub CLI, consultez le dépôt GitHub CLI.
If you have access to GitHub Copilot via your organization or enterprise, you cannot use Copilot dans l’interface de ligne de commande CLI if your organization owner or enterprise administrator has disabled Copilot dans l’interface de ligne de commande CLI. See Managing policies for Copilot in your organization.
Installing Copilot dans l’interface de ligne de commande CLI
-
If you have not already authenticated to the GitHub CLI, run the following command in your terminal.
Shell gh auth login
gh auth login
-
To install the Copilot dans l’interface de ligne de commande CLI extension, run the following command.
Shell gh extension install github/gh-copilot
gh extension install github/gh-copilot
Updating Copilot dans l’interface de ligne de commande CLI
After installing the Copilot dans l’interface de ligne de commande CLI extension, you can update at any time by running:
gh extension upgrade gh-copilot
gh extension upgrade gh-copilot