Download Github build artifact (release) using wget/curl Download Github build artifact (release) using wget/curl curl curl

Download Github build artifact (release) using wget/curl


You can use the GitHub API.

To download a release using wget, you can do:

wget --header "Authorization: token <GITHUB TOKEN>"  --output-document=<RELEASE>.tar.gz https://api.github.com/repos/<USER>/<REPO>/tarball/<RELEASE NAME>

Use can change tarball to zipball to get a zip file.


The release.tar.gz part is set by the owner, so it is not generic.

$ wget https://github.com/XhmikosR/notepad2-mod/releases/download/4.2.25.935/Notepad2-mod.4.2.25.935.exe--2014-12-02 11:16:42--  https://github.com/XhmikosR/notepad2-mod/releases/download/4.2.25.935/Notepad2-mod.4.2.25.935.exeResolving github.com (github.com)... 192.30.252.130Connecting to github.com (github.com)|192.30.252.130|:443... connected.HTTP request sent, awaiting response... 302 Found