This week GitHub announced the beta for their new GitHub CLI tool, which provides an easier and more seamless way for you to interact with GitHub from your terminal.
The GitHub CLI can be installed on Windows, macOS and Linux. Get started by downloading the installer from the GitHub CLI repository.
New GitHub CLI announced and available as betaTweet
What can GitHub CLI do?
Once you have it downloaded, open up your terminal and use the
The GitHub CLI beta currently allows you to do the following commands:
- Pull requests: Using the
prcommand to checkout, create, list, status and view
- Issues: Using the
issuecommand to create, list, status and view
- Help: Using
helpcommand to see how to use the tool
When you first use it you will need to authenticate the GitHub CLI. As you can see here I will be prompted to open GitHub in my browser:
After authenticating the GitHub CLI you will be able to continue with your last command:
I needed to change directories to where my repository was and then I was able to list out my pull requests using the following command:
gh pr list
For more details about what can be done, check out the GitHub CLI manual for lots of examples on using each of the commands.
This is an early look at what can be done with the GitHub CLI, and because it’s still in early development the team would love for you to give the tool a try and then provide them feedback.
Download from https://cli.github.com/
Documentation at https://cli.github.com/manual/