wrangler
4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed
In short
1 removed1 new4 fixed4 internal
- Removed
Remove the
wrangler dispatch-namespace renamecommand
Release note
Minor Changes
Support
--env-filein the experimentalcf-wrangler devdelegateWrangler-bundled projects can now use
cf dev -- --env-file ../../.envto load a shared development file outside the project directory without enablingCLOUDFLARE_INCLUDE_PROCESS_ENV. Repeat--env-fileto load multiple files, with later files overriding earlier values.- Removed
Remove the
wrangler dispatch-namespace renamecommandRenaming a Workers for Platforms dispatch namespace left the namespace name stored in dispatcher bindings out of date, which could make Workers in the namespace impossible to read or delete by name. The Cloudflare API now rejects requests that change a dispatch namespace's name, so the command has been removed. To use a different name, create a new dispatch namespace and redeploy your Workers to it.
Patch Changes
Exit with a nonzero status when the Basin SQL service rejects a query
wrangler basin sql queryreports the service error and exits with status 1 so shell scripts and CI can detect a rejected query.Show that
--localis the default in D1 command helpwrangler d1 execute,wrangler d1 export,wrangler d1 migrations applyandwrangler d1 migrations listrun against the local database unless--remoteis passed, but their--helpoutput did not say so. The--localflag description now ends with "(default)".Recover from missing Worker scripts after an interrupted first deploy
When the Workers API returns a service without a script,
wrangler deployuses the first-deploy flow instead of crashing.wrangler versions uploadtells you to runwrangler deployfirst.Fix intermittent subdomain lookup failures on a Worker's first deploy
After a successful first upload,
wrangler deploycan now read the subdomain settings from the script API if the Worker API does not yet see the new Worker. The normal deploy continues without waiting for the Worker API to catch up.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.