Skip to content

github

see also github actions and gh for more GitHub related things

download latest release

if the filenames easy enough, you can just do this:

curl -OL https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm

or use the github api to list all released assets:

curl -sL https://api.github.com/repos/creativeprojects/resticprofile/releases/latest

and combine it with jq

curl -sL https://api.github.com/repos/creativeprojects/resticprofile/releases/latest | jq -r ".assets[] | select(.name | contains (\"$(dpkg --print-architecture)\")) | .browser_download_url"