When I started using Linux environments, I fell in love with the terminal—its power, versatility, speed, and more. That’s why I always try to find a command-line solution instead of using a graphical interface.
This time, I’ll tell you about my latest discovery. In fact, I installed it on the recommendation of @dant3dmc. I’m talking about “GitHub CLI,” GitHub’s official command-line tool—of course! It’s currently in beta and available only for github.com, not for self-hosted repositories or “GitHub Enterprise Server.” According to official sources, those options will be available in the future.
Installation is easy and is explained very well in the project’s README on GitHub, so I won’t go into it here.
What I’ll explain is how to create a PR using the tool, as an example of how it works:
Create a branch other than master and add some commits. In our example, we’ll use one named “20200909_uso-la-terminal-hasta-en-github,” which is the branch I’ll use to submit this article to the blog.

Run the following command:

In my case, the repository is a fork of another one, so I have to specify the repository where I want to open the PR. Then I just fill in the information the terminal asks for until it asks what I want to do.
At this point, we can finish (“Submit”), cancel (“Cancel”), continue creating the PR in the browser (“Continue in browser”), or—more interestingly—add all the additional information we’re missing, such as “Reviewers,” “Assignees,” and so on.

For this example, we’ll add a “Reviewer.” Select the options with the space bar, since multiple selections are possible, then press “Enter” to finish.
Select the reviewer(s) and press “Enter” to continue.
At this point, the only option is to submit and finish the process.
Once it’s complete, the tool will give us the URL of the newly created PR.

This is just one example of how powerful GitHub CLI is, and it keeps getting better. We can now interact with pull requests, issues, and repositories in almost every way imaginable.
As a console geek, tools like this make my day easier and more enjoyable. I hope they do the same for you.