Public releases for GitHub CLI
Homebrew tap
brew install github/gh/ghDebian/Ubuntu Linux
sudo apt install gitif you don't already have git- Download the
.debfile from the releases page sudo dpkg -i gh_*_linux_amd64.debinstall the downloaded file
(Uninstall with sudo apt remove gh)
Fedora/Centos Linux
- Download the
.rpmfile from the releases page sudo yum localinstall gh_*_linux_amd64.rpminstall the downloaded file
(Uninstall with sudo yum remove gh)
Other Linux
- Download the
_linux_amd64.tar.gzfile from the releases page tar -xf gh_*_linux_amd64.tar.gz- Copy the uncompressed
ghsomewhere on your$PATH(e.g.sudo cp gh_*_linux_amd64/bin/gh /usr/local/bin/)
(Uninstall with rm)
$ gh help
Do things with GitHub from your terminal
Usage:
gh [flags]
gh [command]
Available Commands:
help Help about any command
pr Work with pull requestsThank you for trying out GitHub CLI!
Development version (restricted access)
You can get access to features that are not yet in the stable release by building the development version:
brew install github/gh/gh --HEAD
To upgrade it:
brew upgrade gh --fetch-HEAD