Sign in to GitHub CLI

Signing in to the GitHub CLI.

Command

gh auth login
1

Run the command below in the Codespace terminal.

2

Select 'GitHub.com' and 'HTTPS'. Choose to authenticate with a web browser.

3

Copy the 8-digit one-time code and press Enter to open the browser.

4

Paste the code and authorize the application.