GitHub Command Line Tool Reaches General Availability
Written by Kay Ewbank   
Tuesday, 22 September 2020

GitHub has announced the general availability of its new command-line tool, GitHub CLI. The tool lets you issue pull requests and work with issues from the command line to give developers a more seamless way to work with GitHub repositories from the command line.

The team behind GitHub CLI says it reduces context switching, helps you focus, and enables you to more easily script and create your own workflows.

githubdeklogo

There was already a command line way of working with GitHub using the third party Hub tool which adds extra features and commands that make working with GitHub easier.

GitHub CLI, by contrast, simply provides command line ways to issue GitHub commands.

The decision to go with GitHub CLI rather than building on Hub was a tricky one, according to the GitHub CLI page. In a section on "why didn't you just build on top of hub", the team says they weighed the different possibilities and decided to start fresh:

"without the constraints of 10 years of design decisions that Hub has baked in and without the assumption that Hub can be safely aliased to Git. We also wanted to be more opinionated and focused on GitHub workflows, and doing this with Hub had the risk of alienating many Hub users who love the existing tool and expected it to work in the way they were used to."

GitHub CLI 1.0 lets you run your entire GitHub workflow from the terminal, from issues through releases. You can also call the GitHub API to script most actions, and set a custom alias for any command. The tool also provides a way to connect to the GitHub Enterprise Server as well as to GitHub.com

You can create pull requests and issues without leaving the command line. If you use the tool to create pull requests, it also automatically creates a fork when you don’t already have one, and it pushes your branch and creates your pull request to get your change merged.

githubdeklogo

More Information

GitHub CLI Home Page

Related Articles

GitHub Launches CLI Tool

GitHub Adds New Code Security Features

GitHub Acquires Pull Panda 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Falco On Track To Version 1.0.0
02/04/2024

Falco is a cloud native runtime security tool for the Linux operating system, designed to detect abnormal behavior and warn of potential security threats in real-time. Now it's about to release its fi [ ... ]



OpenJS Foundation Launches jQuery Website Checker
23/04/2024

The OpenJS Foundation has launched a new website checker tool that detects if the jQuery used is out of date.


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 22 September 2020 )