wrangler
4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed
4.167.0 is the newest release of 4.x.
In short
1 removed6 new3 fixed3 internal
- Removed
Remove the 'pubsub' sub-command and related functionality
Release note
Minor Changes
Add AI Search OAuth scopes to login
Adds
ai-search:writeandai-search:runOAuth scopes to the default login scopes, enabling wrangler to authenticate with AI Search APIs.Add
wrangler r2 bucket local-uploadscommand to manage local uploads for R2 bucketsWhen enabled, object data is written to the nearest region first, then asynchronously replicated to the bucket's primary region.
Docs: developers.cloudflare.com/r2/buckets/local-uplo…
# Get local uploads status wrangler r2 bucket local-uploads get my-bucket # Enable local uploads (will prompt for confirmation) wrangler r2 bucket local-uploads enable my-bucket # Enable without confirmation prompt wrangler r2 bucket local-uploads enable my-bucket --force # Disable local uploads wrangler r2 bucket local-uploads disable my-bucket
Add a new
subrequestslimit to thelimitsfield of the Wrangler configuration fileBefore only the
cpu_mslimit was supported in thelimitsfield of the Wrangler configuration file, now asubrequestslimit can be specified as well which enables the user to limit the number of fetch requests that a Worker's invocation can make.Example:
{ "$schema": "./node_modules/wrangler/config-schema.json", "limits": { "cpu_ms": 1000, "subrequests": 150 // newly added field } }Add
timestampfield to the version metadata binding in local development. The version metadata binding now includesid,tag, andtimestampfields, making it easier to test version-aware logic locally.
Patch Changes
Update autoconfig logic to handle Next.js projects by using the new
@opennextjs/cloudflare migratecommandImprove error message when
d1 export --outputpoints to a directoryAdd
versionCommandto theautoconfig_summaryfield in the autoconfig output entryAdd the version upload command to the output being printed by
wrangler deploytoWRANGLER_OUTPUT_FILE_DIRECTORY/WRANGLER_OUTPUT_FILE_PATH. This complements the existingbuildCommandanddeployCommandfields and allows CI systems to know how to upload new versions of Workers.For example, for a standard npm project this would be:
Version command:
npx wrangler versions upload
While for a Next.js project it would be:
Version command:
npx @opennextjs/cloudflare upload
Fixed Wrangler's error handling for both invalid commands with and without the
--helpflag, ensuring consistent and clear error messages.Additionally, it also ensures that if you provide an invalid argument to a valid command, Wrangler will now correctly display that specific commands help menu.
Add framework id, build command, and deploy command to the
autoconfig_summaryfield in the deploy output entryAdd the framework id alongside the commands to build and deploy the project to the output being printed by
wrangler deploytoWRANGLER_OUTPUT_FILE_DIRECTORYorWRANGLER_OUTPUT_FILE_PATH.For example for an npm Astro project these would be:
Framework id:
astroBuild command:
npm run buildDeploy command:
npx wrangler deploy
While for a Next.js project they would instead be:
Framework id:
nextBuild command:
npx @opennextjs/cloudflare buildDeploy command:
npx @opennextjs/cloudflare deploy
- Removed
Remove the 'pubsub' sub-command and related functionality
The Pub/Sub product was never made publicly available and has been discontinued. This removes the
wrangler pubsubcommand and all associated functionality.
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.