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.
npm_config_ignore_scripts=false npm install -g @github/copilotUseful when your `~/.npmrc` sets `ignore-scripts=true`.
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.
brew install copilot-cli@prereleaseLets you try upcoming releases from the Homebrew ecosystem.
winget install GitHub.CopilotUse this on Windows PowerShell v6 or later.
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.
curl -fsSL https://gh.io/copilot-install | bashBest for macOS and Linux when you want a fast bootstrap without npm or Homebrew.
wget -qO- https://gh.io/copilot-install | bashEquivalent to the curl installer when wget is your standard tool.
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.
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.
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.
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.
copilot help commandsReplace `commands` with another help topic such as `config` or `permissions`.