gh auth refresh -h github.com -s copilot

Category: GitHub Copilot

gh auth refresh -h github.com -s copilot

Grant Copilot scope to your existing gh auth token

The Copilot CLI extension needs a specific OAuth scope ('copilot') that may not be in your existing token. This command re-authenticates and adds that scope without requiring a full logout/login cycle.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.