Skip to content

Instantly share code, notes, and snippets.

@bramses
Last active March 20, 2022 20:39
Show Gist options
  • Select an option

  • Save bramses/f6ece70123b577dd09d35bb7e9551d95 to your computer and use it in GitHub Desktop.

Select an option

Save bramses/f6ece70123b577dd09d35bb7e9551d95 to your computer and use it in GitHub Desktop.
curl cf images
for f in "$@"
do
curl -X POST -F "file=@$f" -H "Authorization: Bearer API_KEY" https://api.cloudflare.com/client/v4/accounts/ACCOUNT_ID/images/v1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment