Skip to content

Instantly share code, notes, and snippets.

@benjaminwood
Created June 9, 2021 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjaminwood/5aeb14cda65d78d73038699a66020b30 to your computer and use it in GitHub Desktop.
Save benjaminwood/5aeb14cda65d78d73038699a66020b30 to your computer and use it in GitHub Desktop.
Install latest stripe cli from github releases
# This assumes jq is installed already.
# The stripe binary will be installed at /bin/stripe
curl --silent "https://api.github.com/repos/stripe/stripe-cli/releases/latest" \
| jq -r '.assets[] | select(.name | endswith("linux_x86_64.tar.gz")).browser_download_url' \
| wget -qi - -O - \
| sudo tar -xzvf - -C /bin stripe > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment