wrangler-4-121-0-7-b
Claude Code's read-only tools, web search on, ludion sync on
Question
Which data-location jurisdictions can I pass when creating a D1 database from the CLI?
Answer key
- A correct answer says
- `wrangler d1 create <name> --jurisdiction us` creates a D1 database in the US jurisdiction.
- The stale answer
- D1 jurisdictions are limited to eu and fedramp; there is no US jurisdiction option.
Answer
You set the jurisdiction with the `--jurisdiction` flag on `wrangler d1 create`, for example `wrangler d1 create my-db --jurisdiction eu`. The values are `eu` (European Union), `fedramp` (FedRAMP-compliant data centers), and `us` (United States). `us` was added in wrangler 4.121.0, so it works with the 4.148.0 installed here.
I couldn't confirm this against your local CLI because the `wrangler d1 create --help` call needed approval. You can run it yourself to see the exact list. The jurisdiction is fixed when the database is created and can't be changed later.Grade
correct
The judge's reason: It lists eu, fedramp, and us as valid --jurisdiction values for wrangler d1 create, matching the key and not presenting the stale limitation.
Session log
Tool call: Bash
{ "command": "cd \"C:/Users/haya0/AppData/Local/Temp/ludion-bench-pTzBN1/work\" && npx --no-install wrangler d1 create --help 2>&1 | grep -i -A3 jurisdiction", "description": "Check D1 create jurisdiction options" }Tool output (error)
This Bash command contains multiple operations. The following part requires approval: cd "C:/Users/haya0/AppData/Local/Temp/ludion-bench-pTzBN1/work" && npx --no-install wrangler d1 create --help 2>&1Agent
You set the jurisdiction with the `--jurisdiction` flag on `wrangler d1 create`, for example `wrangler d1 create my-db --jurisdiction eu`. The values are `eu` (European Union), `fedramp` (FedRAMP-compliant data centers), and `us` (United States). `us` was added in wrangler 4.121.0, so it works with the 4.148.0 installed here. I couldn't confirm this against your local CLI because the `wrangler d1 create --help` call needed approval. You can run it yourself to see the exact list. The jurisdiction is fixed when the database is created and can't be changed later.