Installing GitHub Copilot in the CLI - GitHub Docs
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 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

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.