- Access to Copilot. See What is Copilot?.
- CLI installed. For installation instructions for CLI, see the CLI repository.
If you have access to Copilot via your organization or enterprise, you cannot use Copilot in the CLI if your organization owner or enterprise administrator has disabled Copilot in the CLI. See Managing policies for Copilot in your organization.
If you have not already authenticated to the CLI, run the following command in your terminal.
Shell gh auth login
gh auth login
To install the Copilot in the CLI extension, run the following command.
Shell gh extension install /gh-copilot
gh extension install /gh-copilot
After installing the Copilot in the CLI extension, you can update at any time by running:
gh extension upgrade gh-copilot
gh extension upgrade gh-copilot