Install GitHub Copilot CLI
mainYou can install GitHub Copilot CLI using several methods depending on your operating system and preferred package manager.
macOS and Linux
Use the official install script:
curl -fsSL https://gh.io/copilot-install | bashTo install to a specific directory, set the PREFIX variable. To install a specific version, set the VERSION variable:
curl -fsSL https://gh.io/copilot-install | VERSION="v0.0.369" PREFIX="$HOME/custom" bashAlternatively, use Homebrew:
brew install copilot-cli
# For prerelease
brew install copilot-cli@prereleaseWindows
Use WinGet:
winget install GitHub.Copilot
# For prerelease
winget install GitHub.Copilot.PrereleaseCross-platform (npm)
Install globally via npm:
npm install -g @github/copilot
# For prerelease
npm install -g @github/copilot@prereleasecurl -fsSL https://gh.io/copilot-install | bash