npm install -g @github/copilotUse this on any platform when Node.js 22 or later is available.
Commands for installing GitHub Copilot CLI, authenticating, updating, and starting interactive or wrapped sessions.
Install the current CLI on major platforms and channels.
npm install -g @github/copilotUse this on any platform when Node.js 22 or later is available.
Force npm to run install scripts.
npm_config_ignore_scripts=false npm install -g @github/copilotUseful when your `~/.npmrc` sets `ignore-scripts=true`.
Install the prerelease channel.
npm install -g @github/copilot@prereleaseGood for testing features before they reach the stable channel.
brew install copilot-cliA clean option for developer machines that already use Homebrew.
Install the prerelease formula.
brew install copilot-cli@prereleaseLets you try upcoming releases from the Homebrew ecosystem.
winget install GitHub.CopilotUse this on Windows PowerShell v6 or later.
Install the prerelease package on Windows.
winget install GitHub.Copilot.PrereleaseUseful when validating new features on Windows runners or laptops.
Bootstrap the CLI with the install script or invoke it through GitHub CLI.
Download and install Copilot CLI with curl.
curl -fsSL https://gh.io/copilot-install | bashBest for macOS and Linux when you want a fast bootstrap without npm or Homebrew.
Download and install Copilot CLI with wget.
wget -qO- https://gh.io/copilot-install | bashEquivalent to the curl installer when wget is your standard tool.
Pin a version and custom install directory.
curl -fsSL https://gh.io/copilot-install | VERSION="v0.0.369" PREFIX="$HOME/custom" bashUseful in CI, sandboxes, or when testing a specific historical build.
gh copilotIf Copilot CLI is not already installed, `gh` can download and run it on supported platforms.
Pass a prompt through the GitHub CLI wrapper.
gh copilot -p "Summarize this week's commits" --allow-tool "shell(git)"Good when you want GitHub CLI to handle installation and execution for you.
gh copilot -- --helpUse `--` so `gh` does not interpret flags intended for Copilot CLI itself.
Delete the Copilot binary that gh downloaded.
gh copilot --removeHelpful when troubleshooting wrapper installs or forcing a clean download.
Authenticate, inspect version state, and update safely.
copilotThis is the default entry point for terminal-native Copilot sessions.
copilot loginUse this outside the interactive slash-command flow when you want an explicit login step.
Target a GitHub host explicitly during login.
copilot login --host https://github.comUseful when switching between GitHub.com and a supported enterprise host.
copilot logoutA clean reset when you need to swap users or re-run authentication.
copilot versionUseful in support tickets, CI logs, and bug reports.
copilot updateA common first fix when behavior differs from the latest docs or release notes.
Show help for commands, config, environment, logging, or permissions.
copilot help commandsReplace `commands` with another help topic such as `config` or `permissions`.