GitHub Launches CLI Tool
Written by Kay Ewbank   
Tuesday, 18 February 2020

GitHub has released an open-source command line tool that you can use to issue pull requests and work with issues from the command line. GitHub CLI is now in beta for Linux, macOS, and Windows.

The developers of the tool say they've created it to provide an easier and more seamless way to work with GitHub from the command line:

"Millions of developers rely on GitHub to make building software more fun and collaborative, and gh brings the GitHub experience right to your terminal."

They point out that GitHub CLI has been designed to work alongside the git command line tool, so if you're working with a Git-specific workflow you should stick to the git CLI.

githubdeklogo

There was already a command line way of working with GitHub using the third party Hub tool. However, this took a different approach to the new tool, as Hub wraps git to extend it with extra features and commands that make working with GitHub easier.

The new tool takes a simpler approach by simply providing command line ways to issue GitHub commands. The developers say they started with issues and pull requests because many developers use them every day, but that other commands will be added over time.

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.

You can also carry out status checks to see the status of open issues and pull requests, and see what’s waiting for review.

The tool also has a filter option. If you look for lists of issues or pull requests in a repository, the default behavior is that you will see the most recent 20 open items. However, you can use flags to filter the list. At the moment there are four possible flags to filter by assignee, label, maximum number of issues to fetch, and state (open, closed or all).

GitHub CLI is available for use in a beta version.

githubdeklogo

More Information

GitHub CLI Home Page

Related Articles

GitHub Adds New Code Security Features

GitHub Acquires Pull Panda

Counting Vulnerabilities In Open Source Projects and Programming Languages

Don't Neglect Open Source Security

GitHub Sponsors - Money For Open Source

GitHub Bug Bounty Program Expanded In Scope and Reward 

Microsoft GitHub - What's Different 

 

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


Azure AI And Pgvector Run Generative AI Directly On Postgres
26/03/2024

It's a match made in heaven. The Azure AI extension enables the database to call into various Azure AI services like Azure OpenAI. Combined with pgvector you can go far beyond full text search. Let's  [ ... ]



Run WebAssembly Components Inside Node.js With Jco
28/03/2024

Jco 1.0 has been just announced by the Bytecode Alliance.It's a native JavaScript WebAssembly toolchain and runtime that runs Wasm components inside Node.js. Why is that useful?


More News

Last Updated ( Tuesday, 18 February 2020 )