GitHub CLI 2 · Setup and repositories
Sign in to GitHub
Authenticate gh through a browser or a token.
gh auth login
Official GitHub CLI 2 documentation
More setup and repositories commands
- Check the gh version
- Check who you are signed in as
- 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