https://github.com/giraffate/ghrd
Download an asset from GitHub Release
https://github.com/giraffate/ghrd
github go golang
Last synced: 2 months ago
JSON representation
Download an asset from GitHub Release
- Host: GitHub
- URL: https://github.com/giraffate/ghrd
- Owner: giraffate
- License: mit
- Created: 2018-01-05T08:52:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-31T10:15:21.000Z (about 8 years ago)
- Last Synced: 2025-06-04T00:45:15.179Z (about 1 year ago)
- Topics: github, go, golang
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/giraffate/ghrd)
# ghrd
`ghrd` download an asset from GitHub Release.
If there are some assets with the specified tag, `ghrd` download an asset with the latest id.
## Usage
After setting GitHub API token, run the following command,
```
ghrd -u [OWNER] -r [REPOSITORY] [TAG]
```
### GitHub API token
Set it via environmental variable,
```
$ export GITHUB_TOKEN=xxx
```
or using `-t` option,
```
ghrd -u [OWNER] -r [REPOSITORY] -t [TOKEN] [TAG]
```
### GitHub Enterprise
Change API endpoint via environmental variable,
```
$ export GITHUB_API=xxx
```