Merge pull request #298 from cli/scoop

scoop config for gh
This commit is contained in:
Nate Smith 2020-02-03 19:14:54 -06:00 committed by GitHub
commit ae3e03373d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 3 deletions

View file

@ -77,3 +77,14 @@ nfpms:
formats:
- deb
- rpm
scoop:
bucket:
owner: cli
name: scoop-gh
commit_author:
name: vilmibm
email: vilmibm@github.com
homepage: https://github.com/cli/cli
description: GitHub CLI
license: MIT

View file

@ -30,23 +30,40 @@ tools bring GitHub to the terminal, `hub` behaves as a proxy to `git` and `gh` i
tool.
## Installation
## Installation and Upgrading
### macOS
`brew install github/gh/gh`
Install: `brew install github/gh/gh`
Upgrade: `brew update && brew upgrade gh`
### Windows
MSI installers are available on the [releases page][].
`gh` is available via [scoop][]:
Install:
```
scoop bucket add github-gh https://github.com/cli/scoop-gh.git
scoop install gh
```
Upgrade: `scoop update gh`
Signed MSI installers are also available on the [releases page][].
### Debian/Ubuntu Linux
Install and upgrade:
1. Download the `.deb` file from the [releases page][]
2. `sudo apt install git && sudo dpkg -i gh_*_linux_amd64.deb` install the downloaded file
### Fedora/Centos Linux
Install and upgrade:
1. Download the `.rpm` file from the [releases page][]
2. `sudo yum localinstall gh_*_linux_amd64.rpm` install the downloaded file
@ -57,6 +74,7 @@ project directory.
<!-- TODO eventually we'll have https://cli.github.com/manual -->
[docs]: https://cli.github.io/cli/gh
[scoop]: https://scoop.sh
[releases page]: https://github.com/cli/cli/releases/latest
[hub]: https://github.com/github/hub
[contributing page]: https://github.com/cli/cli/blob/master/.github/CONTRIBUTING.md