Skip to content

Instantly share code, notes, and snippets.

@farkaskid
Created January 8, 2020 07:51
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 farkaskid/92d3d488b4aef5d4c3e7dda4076f4fe4 to your computer and use it in GitHub Desktop.
Save farkaskid/92d3d488b4aef5d4c3e7dda4076f4fe4 to your computer and use it in GitHub Desktop.
Write data in KV
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/storage/kv/namespaces/$NAMESPACE_ID/values/first-key" \
-X PUT \
-H "X-Auth-Email: $CLOUDFLARE_EMAIL" \
-H "X-Auth-Key: $CLOUDFLARE_AUTH_KEY" \
--data 'My first value!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment