Copilot CLI: Install, Update, Authenticate, and Launch/Authenticate against a specific GitHub host

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.com
Explanation

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
Authenticate with OAuth device flow
Log in from the terminal.
OpenIn sheetbashsame section
Start the interactive UI
Launch Copilot CLI in interactive mode.
OpenIn sheetbashsame section
Sign out of Copilot CLI
Remove stored credentials.
OpenIn sheetbashsame section
Show version information
Print version details and check for updates.
OpenIn sheetbashsame section
Update Copilot CLI
Download and install the latest version.
OpenIn sheetbashsame section
Open help topics
Show help for commands, config, environment, logging, or permissions.
OpenIn sheetbashsame section