I just fiddled around a bit to find out how to download the latest GitHub release via the command line. Turns out that GitHub doesn’t provide a universal download URL to release binaries like it does for the release browser page itself. The latest release page can always be reached via https://github.com/ORGANIZATION/REPO/releases/latest
, e.g. https://github.com/gvenzl/csv2db/releases/latest
. Unfortunately that is not true for the binaries, which are available under https://github.com/ORGANIZATION/REPO/archive/RELEASE_TAG.zip
and https://github.com/ORGANIZATION/REPO/archive/RELEASE_TAG.tar.gz
but not under something generic like https://github.com/ORGANIZATION/REPO/archive/latest.zip
and https://github.com/ORGANIZATION/REPO/archive/latest.tar.gz
Continue reading “How to download the latest GitHub repo release via command line”