Paul Krill
Editor at Large

GitHub CLI 2.0 introduces extensions

news
Aug 25, 20212 mins

GitHub CLI extensions allow developers to customize the functionality of the command line tool and share custom commands with other users.

command line
Credit: Thinkstock

GitHub has launched GitHub CLI 2.0, a new version of its command line tool that allows developers to create extensions, or custom commands that build on CLI functionality.

The open source tool, which brings GitHub to a terminal, can be installed from cli.github.com.

With GitHub CLI 2.0, unveiled August 24, extensions are just repositories prefixed with gh- that contain an executable file such as a Bash script. GitHub has built tools into GitHub CLI such as gh extension create, which provides a scaffolded repository with pre-written Bash.

To help developers get started, the GitHub team built a few extensions ranging from GitHub-focused utilities like gh contribute, for working on an open source project, to terminal-focused tools like gh screensaver. Other GitHub CLI extensions include:

  • gh user-status, to quickly set GitHub user status from the terminal to let others know of availability or if the user is in focus mode.
  • gh branch, a fuzzy finder branch switcher that orders branches by recency and displays information about associated pull requests.
  • gh triage, which takes GitHub’s process to triage issues in its open source repo and makes it more broadly usable.

Developers can discuss the extensions they build via a GitHub discussion thread. GitHub CLI 1.0 was released last September. The tool is intended to provide a seamless developer experience, leveraging features such as GitHub Actions to automate workflows.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author