GitHub CLI 2.0 includes extensions!
GitHub CLI 2.0 is now available, making it easy to create and share your own custom commands to make your experience even more powerful.
![](https://github.blog/wp-content/uploads/2021/08/GitHub-CLI-2-0_social-card.png?resize=1200%2C630)
GitHub CLI 2.0 supports extensions, allowing anyone to make custom commands that build on the core functionality of GitHub CLI.
Our goal with GitHub CLI 1.0 was to build amazing tooling that allows you to more seamlessly complete the most common developer workflows end-to-end in the terminal. We continued to build on that foundation with far better support for scripting and for working with GitHub Actions. But we knew that a one-size-fits-all tool would never meet every developer’s needs.
Today, we’re excited to release GitHub CLI 2.0, making it easy to create extensions to extend the tool in whatever ways you choose, and install extensions that others have created.
Creating extensions
Creating extensions is simple. Each extension is just a repository prefixed with gh-
, and you can easily define the extension. We even built tooling into GitHub CLI itself to allow you to get started more quickly with gh extension create
, which creates a scaffolded repository for you with some pre-written Bash that will help you get started.
To learn more about creating extensions, check out the documentation and explore the repositories for the example extensions below.
Example extensions
To get you started, our team built a few extensions ranging from GitHub-focused utilities like gh contribute
to silly terminal-focused features like gh screensaver
:
gh user-status
This extension allows you to quickly set your GitHub user status from your terminal to let others know when you’re unavailable or in focus mode.
gh branch
This extension is a fuzzy finder branch switcher that orders branches by recency and displays information about any associated pull requests.
gh contribute
Quickly find an issue to work on in an open source project using the contribute extension. This finds issues with help wanted
or good first issue
labels that have been created in the past year and do not yet have an associated pull request.
gh screensaver
Extensions don’t have to be serious—they can also just be fun or silly. We’ve got a few things like that already in GitHub CLI like gh repo garden
. This extension invokes a full-screen ASCII screensaver.
gh triage
Our triage extension takes our process to triage issues in our open source repo and makes it more broadly usable. Instead of using this directly, you might take inspiration from it to build your own triage extension more specific to your project’s process.
Let us know what you build
Now that you’ve seen a few examples for inspiration, we’d love to hear about the extensions you create! Join the discussion in the GitHub CLI repository and share what you’ve built. We’re excited to see what great ideas you have to leverage GitHub CLI to improve everyone’s experience.
Install GitHub CLI today.
Tags:
Written by
Related posts
![](https://github.blog/wp-content/uploads/2023/10/Collaboration-DarkMode-2.png?resize=400%2C212)
2024 is the biggest global election year in history. What’s at stake for developers?
GitHub is considering what is at stake for our users and platform, how we can take responsible action to support free and fair elections, and how developers contribute to resilient democratic processes.
![](https://github.blog/wp-content/uploads/2023/10/AI-DarkMode-2.png?resize=400%2C212)
GitHub named a Leader in the Gartner first-ever Magic Quadrant for AI Code Assistants
This year, as part of its annual Magic Quadrant series, Gartner published a first-of-its-kind report analyzing the state of play in the AI Code Assistants market–and named GitHub a Leader.
![AI in software development 2024 survey results with colorful graphics and percentages.](https://github.blog/wp-content/uploads/2024/08/ai-survey-header.png?resize=400%2C212)
Survey: The AI wave continues to grow on software development teams
We surveyed 2,000 people on software development teams at enterprises in the U.S., Brazil, India, and Germany about the use, experience, and expectations around generative AI tools in software development.