Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

wrangler kv:bulk put and wrangler kv:bulk delete use different JSON structures #576

Closed
kristianfreeman opened this issue Sep 12, 2019 · 1 comment
Assignees
Labels
feature Feature requests and suggestions
Milestone

Comments

@kristianfreeman
Copy link
Contributor

When I use wrangler kv:bulk put with a JSON file, I would expect to be able to use the same JSON file when I call wrangler kv:bulk delete:

JSON file:

[{"key": "baz", "value": "1" }]
~/.cargo/bin/wrangler kv:bulk put test.json --namespace-id abcdef
✨  Success

~/.cargo/bin/wrangler kv:bulk delete test.json --namespace-id 32b2201a72e344398868e72b78aae7a5
Are you sure you want to delete all keys in test.json? [y/n]
y
Error: Failed to decode JSON. Please make sure to follow the format, ["test_key_1", "test_key_2", ...]

When I change test.json: ["baz"], the command works correctly.

@ashleymichal
Copy link
Contributor

closed by #577

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Feature requests and suggestions
Projects
None yet
Development

No branches or pull requests

3 participants