Released almost a year ago, GitHub CLI has quickly become one of the most used command-line tools, by allowing you to perform all the major operations that you can do with the web graphical user interface without needing to leave the Linux terminal.

Learn how to install GitHub CLI on your Linux machine.

Installing GitHub CLI on Linux

While GitHub also offers a desktop app alongside the typical web user interface, choosing the terminal over GUI can help you avoid context switching while writing and running your code. The installation process of GitHub CLI is similar to that of other Linux terminal-based tools.

Depending upon the Linux distribution you’re using, run the commands below on the terminal emulator of your choice:

Debian, Ubuntu, and its derivatives:

Arch Linux, Manjaro, and its derivatives:

Fedora, CentOS, and Red Hat Enterprise Linux:

On openSUSE/SUSE Linux:

In addition to installing via the terminal, you can also download the prebuilt GitHub CLI binaries for your distribution from the releases page. There’s also a community-supported snap package version of GitHub CLI available on the Snap Store, but GitHub officially discourages using it.

One Tool for All Your GitHub Operations

As a software developer, Git and GitHub play an integral role in version control for your codebase. With GitHub CLI, you can perform various operations, such as cloning a repository, more quickly with just a few simple commands.

Speaking of cloning repositories, you can also use Git Bash to perform your Git operations from the command line.