Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zero88/gh-release-downloader
GitHub release downloader
https://github.com/zero88/gh-release-downloader
bash curl ghrd
Last synced: about 2 months ago
JSON representation
GitHub release downloader
- Host: GitHub
- URL: https://github.com/zero88/gh-release-downloader
- Owner: zero88
- License: apache-2.0
- Created: 2021-01-03T08:35:39.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-12T08:09:28.000Z (over 1 year ago)
- Last Synced: 2024-10-30T06:25:08.612Z (about 2 months ago)
- Topics: bash, curl, ghrd
- Language: Shell
- Homepage:
- Size: 52.7 KB
- Stars: 22
- Watchers: 2
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub release downloader
![Docker Image Version (latest semver)](https://img.shields.io/docker/v/zero88/ghrd?sort=semver&style=flat-square)
![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/zero88/gh-release-downloader?sort=semver)GitHub release downloader CLI
## Installation
1. Use [`docker`](https://hub.docker.com/r/zero88/ghrd)
- One line
```bash
docker run --rm -v /tmp:/tmp zero88/ghrd:latest -h
```- Register as alias in `~/.bash_alias` or `~/.bash_rc`
```bash
cat >> ~/.bash_alias <
Usage: ./ghrd [-r|--release ] [-t|--pat ] [-a|--artifact ] [-x|--(no-)regex] [-p|--parser ] [-s|--source ] [-o|--output ] [--(no-)debug] [-h|--help] [-v|--version]
: GitHub repository. E.g: zero88/gh-release-downloader
-r, --release: A release version (default: 'latest')
-t, --pat: GitHub Personal access token (no default)
-a, --artifact: Artifact name (no default)
-x, --regex, --no-regex: Use regex to search artifact (off by default)
-p, --parser: Use custom jq parser instead of search by artifact name (no default)
-s, --source: Download Repository Source instead of release artifact. Can be one of: 'zip', 'tar' and '' (no default)
-o, --output: Downloaded directory (default: '/app')
--debug, --no-debug: Debug option (off by default)
-h, --help: Prints help
-v, --version: Prints version
```## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
This project is licensed under the Apache License - see the [LICENSE](./LICENSE) file for details
## References
Awesome bash arguments from [Argbash](https://argbash.io)