Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Last active July 3, 2020 06:23
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 velotiotech/b6e9b02b2292b4c0e533d1216aec8d03 to your computer and use it in GitHub Desktop.
Save velotiotech/b6e9b02b2292b4c0e533d1216aec8d03 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