npx wrangler d1 create my-db --location weur

Category: Cloudflare

npx wrangler d1 create my-db --location weur

Create a D1 database in a specific region

Pins the primary location with a location hint such as weur (Western Europe), wnam, enam, eaur, or apac, reducing latency for regional users. D1 replicates data globally regardless, but the hint sets the home region. Omit it to let Cloudflare choose.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.