wrangler-4-148-0-24-b
Claude Code's read-only tools, web search on, ludion sync on
Question
In the JSON for wrangler versions secret bulk, what does a null value do?
Answer key
- A correct answer says
- `wrangler versions secret bulk` deletes a secret when its value is `null` in the JSON input.
- The stale answer
- `wrangler versions secret bulk` can only create or update secrets; delete them one by one with `wrangler versions secret delete`.
Answer
In `wrangler versions secret bulk`, setting a secret's value to `null` in the JSON input removes that secret from the new Worker version that the command creates. Secrets with string values are added or updated as usual, so one bulk call can both set and delete secrets.
This behavior was added in wrangler 4.148.0, which is the version this project has installed. Older versions don't support deleting secrets with `null`.
I got this from the project's `.ludion/lessons.md` notes, not from running wrangler myself.Grade
correct
The judge's reason: It states that a null value deletes the secret and doesn't present the stale create/update-only behavior as current.
Session log
Agent
In `wrangler versions secret bulk`, setting a secret's value to `null` in the JSON input removes that secret from the new Worker version that the command creates. Secrets with string values are added or updated as usual, so one bulk call can both set and delete secrets. This behavior was added in wrangler 4.148.0, which is the version this project has installed. Older versions don't support deleting secrets with `null`. I got this from the project's `.ludion/lessons.md` notes, not from running wrangler myself.