Github recently released the beta version of their Github CLI. It’s a simple CLI tool that can be used to bring Github concepts (repo, issue, pr) into the terminal.
You can download it at https://cli.github.com/ ↗️.
After installing the cli on your system, just open the terminal and you can use any of these commands
It will ask you for the title and the body of the issue
Additionally, you can directly use flags to create the issue directly.
And you can use the web browser as well to directly open the URL to the page by adding the
You can list the issues using
along with some additional flags to filter like open issues
Just like issues, you can open PR’s as well using the CLI.
And again it also supports using the
The cool part here is that you can view the status of the PR directly in the terminal.
Cloning a repo using CLI
Additionally, you can create new repo using
It supports a set of flags like
Along with creating repos, you can even fork any repo using this tool.
And at the very least, open/view any repo in the browser using
- Note - If no
repositoryis mentioned, it forks/views the current repository, that is the folder in which you are using the repo if it is initialized as a git repository remotely.
We talk about the latest announcement made by Github about their CLI tool and see a few examples of the commands it ships with.
Github CLI is a great tool to use if you are a terminal person and want to do everything from the terminal itself. It’s still in beta and has a lot of features to be added. But it’s a great start and I am looking forward to using it more.