Seed the local KV store that dev uses
kv
// what it does
With `--local`, the command reads and writes the on-disk store under `.wrangler/state` that `wrangler dev` serves — perfect for seeding test data before local development. Drop `--local` (or pass `--remote`) to operate on the real KV at Cloudflare's edge.
// shell
$ wrangler kv key put KEY VALUE --binding=CACHE --local$ wrangler kv key list --binding=CACHE --local// gotcha
These commands default to remote, so forgetting `--local` writes straight to production KV. Local and remote are separate stores — data seeded in one is invisible to the other.