gh

GitHub binary downloader

Downloads release binaries from github repos (extracts them from archives if necessary too).

Features

It’s just a single sh file, that don’t necessarily need to be installed before. Just run command in terminal and it will download targeted binary from github repos.

Usage

Download latest release:

curl -SsfL https://marcisbee.github.io/gh/dl.sh | bash -s -- --repo caddyserver/caddy

Download specific tag:

curl -SsfL https://marcisbee.github.io/gh/dl.sh | bash -s -- --repo caddyserver/caddy --tag v2.9.1

You can also use versioned url if security is on the line:

curl -SsfL https://raw.githubusercontent.com/Marcisbee/gh/refs/tags/v1.0.2/dl.sh | bash -s -- --repo caddyserver/caddy

Motivation

I was sick and tired of apps like brew, just needed a simple app that pulls release binaries from github. Saving them in current directory was also a plan so that it’s easy to preload binaries in e.g. github actions.

License

MIT © Marcis Bergmanis