Download the latest Github release using command line

For personal reference:

Download the latest GitHub Releases asset using common command line tools:

# Update the url accordingly. The `uname | awk` subcmds will output 'linux'|'darwin'.
$ curl -s https://api.github.com/repos/alphauslabs/bluectl/releases/latest | \
  jq -r ".assets[] | select(.name | contains(\"$(uname -s | awk '{print tolower($0)}')\")) | .browser_download_url" | \
  wget -i -
---
If you have any questions or feedback, please reach out @flowerinthenyt.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.