https://github.com/thombashi/install-gh
Simple one-liner installer of gh (cli/cli) from the release assets.
https://github.com/thombashi/install-gh
gh-cli installer-script
Last synced: 4 months ago
JSON representation
Simple one-liner installer of gh (cli/cli) from the release assets.
- Host: GitHub
- URL: https://github.com/thombashi/install-gh
- Owner: thombashi
- License: mit
- Created: 2022-09-07T07:34:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-14T06:21:38.000Z (over 2 years ago)
- Last Synced: 2025-07-02T01:06:32.544Z (8 months ago)
- Topics: gh-cli, installer-script
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# install-gh
## Summary
Simple one-liner installer of `gh` ([cli/cli](https://github.com/cli/cli/releases)) from the release assets without package management tools.
[](https://github.com/thombashi/install-gh/actions/workflows/tests.yaml)
## Requirements
- `jq`
## Usage
### Install gh: the latest version
```
curl -sS https://raw.githubusercontent.com/thombashi/install-gh/main/setup-gh.sh | sudo sh
```
### Install gh: a specific version (tag)
```
curl -sS https://raw.githubusercontent.com/thombashi/install-gh/main/setup-gh.sh | sudo sh -s v2.14.7
```
## Supported environments
- Linux
- macOS
## Related project
- [thombashi/gh-update](https://github.com/thombashi/gh-update)
- `gh-update` is a `gh` extension that updates the gh to the latest version.