メモ
GitHub Copilot in the CLI is in public preview and subject to change.
To find out about CLI での Copilot before you install it, see About GitHub Copilot CLI.
Prerequisites
- A GitHub Copilot subscription. See Copilot plans.
- Node.js version 22 or later
- npm version 10 or later
If you have access to GitHub Copilot via your organization or enterprise, you cannot use CLI での Copilot if your organization owner or enterprise administrator has disabled it in the organization or enterprise settings. See GitHub Copilot のポリシーと機能を Organization で管理する.
Installing or updating CLI での Copilot
Run the following command to install or update CLI での Copilot.
npm install -g @github/copilot
npm install -g @github/copilot
Next steps
You can now use Copilot from the command line. See Using GitHub Copilot CLI.