Release Hunter is a Go-based command-line tool that helps you discover latest GitHub releases for any software. You can use it to search for GitHub repositories by keyword and access direct download URLs for release assets.
-
-help, -h
: Show usage and examples. -
-version, -v
: Show the version of the CLI. -
-token, -t <token>
: GitHub personal access token. -
-repo, -r <repository>
: GitHub repository in the formatuser/repo
. -
-find, -f <keyword>
: Search GitHub repositories by keyword to find correctuser/repo
. -
-keyword, -k <keyword>
: Filter links by an optional keyword, can be used with the -f or -r flags.
Before using Release Hunter, you need to set up a GitHub personal access token. You can create the token and set it either as an environment variable or use it as a flag when running the tool.
- Go to GitHub Settings → New Token in your GitHub account.
- Set "name", "expiration date" and grant permissions: "repo - public_repo" and "user - read:user".
- Use the token:
- as an environment variable:
export GITHUB_TOKEN=<your-token>
- or as a flag:
rh -t <your-token>
All available versions for different operating systems can be found in releases here
To install Release Hunter, use the following commands (linux_amd64 example):
curl -L -o rh https://github.com/sv222/release-hunter/releases/download/v0.1.0/release_hunter_0.1.0_linux_amd64 && chmod +x rh && sudo mv rh /usr/local/bin/rh
Search for GitHub repositories using a keyword:
rh -f <keyword>
For example, to search for repositories related to Podman:
rh -f podman
Filter a search result by the keyword "desktop":
rh -find podman -k desktop
Copy <user/repo> for found repo "containers/podman-desktop".
Retrieve the latest release for a specific GitHub repository:
rh -repo <user/repo>
For example, to get the latest release for "podman-desktop":
rh -repo containers/podman-desktop
Filter the resulting links using the keyword "arm":
rh -repo containers/podman-desktop -k arm
To run the Release Hunter CLI within a Docker container, follow these steps:
-
Make sure you have Docker installed on your system.
-
Clone a project locally:
git clone https://github.com/sv222/release-hunter.git
-
Open a terminal and navigate to the root directory of the project where the Dockerfile is located.
-
Build the Docker image using the following command:
docker build -t rh .
Once the Docker image is built, you can run the Release Hunter CLI inside a Docker container with the desired flags and arguments.
Example command to run the container with flags and arguments:
docker run --rm rh -t <your-github-token> -r <user/repo>
We welcome contributions from the community. If you have ideas, bug reports, or feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License.