Homebrew tap for the GitHub CLI
Перейти к файлу
Mislav Marohnić 113e01738e
gh 0.4.0
2020-01-14 16:06:14 +01:00
Formula gh 0.4.0 2020-01-14 16:06:14 +01:00
README.md Add Windows uninstall instructions 2019-12-05 21:35:53 +01:00

README.md

Public releases for GitHub CLI

Install for macOS

Homebrew

To install:

brew install github/gh/gh

To upgrade:

brew upgrade gh

Manual install

  1. Download the *_macOS_amd64.tar.gz file from the releases page
  2. tar -xf gh_*_macOS_amd64.tar.gz
  3. Copy the uncompressed gh somewhere to your PATH (e.g. cp gh_*_macOS_amd64/bin/gh /usr/local/bin/)

Install for Windows

  1. Download the *.msi installer from the releases page
  2. Run the installer

Uninstall from Windows

  1. Search for "remove programs" in the start menu
  2. Choose “Add or remove programs”
  3. Find “GitHub CLI” on the list
  4. Click on it and choose “Uninstall”

Install for Linux

Debian/Ubuntu Linux

  1. sudo apt install git if you don't already have git
  2. Download the .deb file from the releases page
  3. sudo dpkg -i gh_*_linux_amd64.deb install the downloaded file

(Uninstall with sudo apt remove gh)

Fedora/Centos Linux

  1. Download the .rpm file from the releases page
  2. sudo yum localinstall gh_*_linux_amd64.rpm install the downloaded file

(Uninstall with sudo yum remove gh)

Other Linux

  1. Download the *_linux_amd64.tar.gz file from the releases page
  2. tar -xf gh_*_linux_amd64.tar.gz
  3. Copy the uncompressed gh somewhere to your PATH (e.g. sudo cp gh_*_linux_amd64/bin/gh /usr/local/bin/)

(Uninstall with rm)

Usage

$ gh help
Work with GitHub from your terminal

Usage:
  gh [command]

Available Commands:
  help        Help about any command
  issue       Work with issues
  pr          Work with pull requests

Flags:
  -h, --help                    Help for gh
  -R, --repo string             Select GitHub repository

Use "gh [command] --help" for more information about a command.

Thank 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