AI tools

Install GitHub Copilot CLI

GitHub's Copilot as an assistant in your terminal: ask it to explain, write and run code in your project.

  1. Install it
    Terminal
    npm install -g @github/copilot

    Needs Node.js 22 or newer.

  2. Start it in your project and sign in
    Terminal
    cd ~/projects/my-app
    copilot

    Type /login and follow the steps. You need a GitHub Copilot plan (there's a free tier).

Check it worked

  1. Check the version
    Terminal
    copilot --version
Undo it
  1. Uninstall it
    Terminal
    npm uninstall -g @github/copilot
  1. Install it
    Terminal · Ubuntu / Debian
    npm install -g @github/copilot

    Needs Node.js 22 or newer.

  2. Start it in your project and sign in
    Terminal · Ubuntu / Debian
    cd ~/projects/my-app
    copilot

    Type /login and follow the steps. You need a GitHub Copilot plan (there's a free tier).

Check it worked

  1. Check the version
    Terminal · Ubuntu / Debian
    copilot --version
Undo it
  1. Uninstall it
    Terminal · Ubuntu / Debian
    npm uninstall -g @github/copilot
  1. Install it
    PowerShell
    npm install -g @github/copilot

    Needs Node.js 22 or newer.

  2. Start it in your project and sign in
    PowerShell
    cd ~\projects\my-app
    copilot

    Type /login and follow the steps. You need a GitHub Copilot plan (there's a free tier).

Check it worked

  1. Check the version
    PowerShell
    copilot --version
Undo it
  1. Uninstall it
    PowerShell
    npm uninstall -g @github/copilot