зеркало из https://github.com/github/homebrew-gh.git
113e01738e | ||
---|---|---|
Formula | ||
README.md |
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
- Download the
*_macOS_amd64.tar.gz
file from the releases page tar -xf gh_*_macOS_amd64.tar.gz
- Copy the uncompressed
gh
somewhere to your PATH (e.g.cp gh_*_macOS_amd64/bin/gh /usr/local/bin/
)
Install for Windows
- Download the
*.msi
installer from the releases page - Run the installer
Uninstall from Windows
- Search for "remove programs" in the start menu
- Choose “Add or remove programs”
- Find “GitHub CLI” on the list
- Click on it and choose “Uninstall”
Install for Linux
Debian/Ubuntu Linux
sudo apt install git
if you don't already have git- Download the
.deb
file from the releases page sudo dpkg -i gh_*_linux_amd64.deb
install the downloaded file
(Uninstall with sudo apt remove gh
)
Fedora/Centos Linux
- Download the
.rpm
file from the releases page sudo yum localinstall gh_*_linux_amd64.rpm
install the downloaded file
(Uninstall with sudo yum remove gh
)
Other Linux
- Download the
*_linux_amd64.tar.gz
file from the releases page tar -xf gh_*_linux_amd64.tar.gz
- 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