download GitHub CLI
download gh
archive to current directory:
$ ./download-gh.sh
download gh
archive to target directory if specified:
$ ./download-gh.sh /path/to/dir
test:
$ tar fx ./gh.tar.gz
$ ./gh*/bin/gh --version
gh version 1.11.0 (2021-06-03)
https://github.com/cli/cli/releases/tag/v1.11.0
if you want only binary:
$ tar fx gh.tar.gz --strip-components 2 gh*/bin/gh
$ ./gh --version
gh version 1.11.0 (2021-06-03)
https://github.com/cli/cli/releases/tag/v1.11.0
$ curl -L https://git.io/sasaplus1-gh | bash -
The MIT license.