Install GitHub Copilot CLI Extension | Generated by AI

Home 2025.08

The command gh extension install github/gh-copilot installs the GitHub Copilot extension for the GitHub CLI, enabling Copilot features like command-line suggestions and explanations. For enterprise users, whether this command applies depends on specific conditions:

Steps for Enterprise Users:

  1. Ensure GitHub CLI is installed (see GitHub CLI repository for instructions).
  2. Verify with your enterprise administrator that Copilot CLI is enabled for your organization.
  3. Run gh extension install github/gh-copilot in your terminal.
  4. Authenticate using gh auth login with your enterprise-assigned GitHub account.
  5. If using a managed user account on GHE.com, follow additional setup steps outlined in Using GitHub Copilot with an account on GHE.com.

If your enterprise restricts CLI access or hasn’t enabled Copilot, the extension may install but won’t function. Check with your admin for policy details.

Installing GitHub Copilot in the CLI Setting up GitHub Copilot for your enterprise


Back Donate