Skip to main content

Installing GitHub Copilot in the CLI

Learn how to install Copilot in the CLI so that you can get suggestions and explanations for the command line.

Prerequisites

If you have access to GitHub 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 and features for Copilot in your organization.

Installing Copilot in the CLI

  1. If you have not already authenticated to the GitHub CLI, run the following command in your terminal.

    Shell
    gh auth login
    
  2. To install the Copilot in the CLI extension, run the following command.

    Shell
    gh extension install github/gh-copilot
    

Updating Copilot in the CLI

After installing the Copilot in the CLI extension, you can update at any time by running:

Shell
gh extension upgrade gh-copilot

Further reading

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy