GitHub CLI 2 · Setup and repositories
Check who you are signed in as
Show the accounts and token scopes gh has.
gh auth status
Official GitHub CLI 2 documentation
More setup and repositories commands
- Check the gh version
- Sign in to GitHub
- Clone a repository
- Create a repository from the current folder
- Fork a repository
- Open the repository in a browser
All setup and repositories commands · GitHub CLI 2 cheatsheet