Installation Methods for GitHub CLI

Installation Methods for GitHub CLI


2 min read

You can install GitHub CLI in quite a few ways, I will be going over each OS in this article.



winget install gh


scoop install gh


choco install gh

MSI file

You can download the compiled MSI file from the releases page.


(Debian/Ubuntu) apt

sudo apt-key adv --keyserver --recv-key C99B11DEB97541F0
sudo apt-add-repository
sudo apt update
sudo apt install gh

(Fedora, CentOS, Red Hat Enterprise Linux) dnf

sudo dnf config-manager --add-repo
sudo dnf install gh

(openSUSE Linux) zypper

sudo zypper addrepo
sudo zypper ref
sudo zypper install gh

(Arch Linux) pacman

sudo pacman -S github-cli

(Android) Termux

pkg install gh

(Gentoo Linux) emerge

emerge -av github-cli

(Kiss Linux) kiss

kiss b github-cli && kiss i github-cli


sudo snap install --edge gh && snap connect gh:ssh-keys

(Nix/NixOS) nix

nix-env -iA