Section: First-run and lifecycle commands

Authenticate with OAuth device flow

bash
bash
copilot login
Explanation

Use this outside the interactive slash-command flow when you want an explicit login step.

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 against a specific GitHub host
Target a GitHub host explicitly during login.
OpenIn sheetbashsame section
Sign out of Copilot CLI
Remove stored credentials.
OpenIn sheetbashsame section
Start the interactive UI
Launch Copilot CLI in interactive mode.
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