sasaplus1 / download-gh.sh

download GitHub CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

download-gh.sh

Actions Status: test

download GitHub CLI

How to use

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

Execute script on the fly

$ curl -L https://git.io/sasaplus1-gh | bash -

License

The MIT license.

About

download GitHub CLI

License:MIT License


Languages

Language:Shell 100.0%