Install Copilot CLI globally with npm.
Section: Install Copilot CLI
Install with npm
bash
bash
npm install -g @github/copilotExplanation
Use this on any platform when Node.js 22 or later is available.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Install Copilot CLI
Install with npm when ignore-scripts is enabled
Force npm to run install scripts.
Install with Homebrew
Install Copilot CLI on macOS or Linux via Homebrew.
Install prerelease with WinGet
Install the prerelease package on Windows.