Bulk upload many pairs from a JSON file
kv
// what it does
Uploads many pairs in one request from a JSON file — far faster than looping `kv key put`. The file is a JSON array of objects like `[{"key":"k1","value":"v1"},{"key":"k2","value":"v2","expiration_ttl":3600}]`. Ideal for seeding config or importing a dataset.
// shell
$ wrangler kv bulk put ./data.json --binding=CACHE// gotcha
Values must be strings — set `"base64": true` on an entry to store binary, and each value caps at 25 MiB. Remote-by-default still applies; add `--local` to load dev's store.