Target a GitHub host explicitly during login.
Section: First-run and lifecycle commands
Authenticate against a specific GitHub host
bash
bash
copilot login --host https://github.comExplanation
Useful when switching between GitHub.com and a supported enterprise host.
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 First-run and lifecycle commands