GitHub CLI 2 · Setup and repositories
Check the gh version
Print the installed GitHub CLI version.
gh --version
Official GitHub CLI 2 documentation
More setup and repositories commands
- Sign in to GitHub
- 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