Tool pages / Wrangler
Cloudflare Wrangler 4.149.0: latest version, changes and gotchas
Latest: Wrangler 4.149.0, released (release notes).
The latest Cloudflare Wrangler is 4.149.0, published to npm on 2026-10-08 18:24 UTC. Upgrade inside your project with npm i -D wrangler@latest. Compared with 4.148.0 it adds hidden --temporary and --event-code flags to R2 and Containers, keeps using and await using declarations in the bundle, and preserves Preview secrets across deployments.
How do I install or upgrade to Wrangler 4.149.0?
In your project (Cloudflare's recommended install):
npm i -D wrangler@latest
npx wrangler --version # 4.149.0pnpm, yarn, bun:
pnpm add -D wrangler@latest
yarn add -D wrangler@latest
bun add -d wrangler@latestPin this exact version:
npm i -D wrangler@4.149.0Wrangler key facts
- Latest: wrangler 4.149.0, npm publish 2026-10-08 18:24 UTC (GitHub release
wrangler@4.149.0at 18:33 UTC in cloudflare/workers-sdk). - Wrangler shipped 25 releases in September 2026, from 4.128.0 to 4.145.0, and 4 more in October 2026 up to 4.149.0.
- Both 4.148.0 and 4.149.0 expose 430 help pages (commands and subcommands) in our sandbox; the diff between them shows 0 help text changes because newly supported
--temporaryand--event-codeflags are hidden. - The
legacy_envconfig field is an error since 4.111.0 (2026-07-15): service environments were removed and each environment deploys as<name>-<environment>. - In a non-interactive shell without
CLOUDFLARE_API_TOKEN,wrangler deployexits 1 and suggests--temporary(a temporary account, added in 4.101.0). - Release notes live in the cloudflare/workers-sdk monorepo, mixed with releases of miniflare, create-cloudflare and other packages.
What changed in the last 5 Wrangler releases?
Wrangler 4.149.0 (2026-10-08 18:24 UTC)
wrangler r2andwrangler containerscommands accept hidden--temporaryand--event-codeto manage resources on temporary event accounts. (source)- Explicit resource management (
usingandawait using) declarations are shipped untouched to the workerd runtime instead of lowering to helper code. (source) wrangler previewpreserves secrets from an existing Preview's latest deployment when re-deploying. (source)- Static asset uploads honor
Retry-Afterdirectives and pause retries until the requested API deadline. (source) wrangler r2 bucket lifecycle addevaluates each action's own condition when combining expiration and transition flags. (source)- The update check never recommends versions that have been deprecated on npm. (source)
Wrangler 4.148.0 (2026-10-06 18:33 UTC)
assets.base_pathserves an asset directory under a public URL prefix (for example/docs). (source)wrangler dev --tunnel-allowed-mailrequires email authentication on Quick Tunnels. (source)wrangler kv namespace create --experimental-mode instantcreates KV Instant namespaces (private beta). (source)wrangler queues subscription createadds--source-namespaceand--source-repo-name, required for--source artifacts.repo. (source)wrangler versions secret bulkdeletes a secret whose JSON value isnull. (source)- Local
r2 object putandr2 bulk putkeep keys with spaces, non-ASCII characters,#and%intact. (source) --temporaryaccount notices and the claim URL now go to stderr, not stdout; scripts that read the claim URL from stdout must read stderr. (source)
Wrangler 4.147.0 (2026-10-02 11:30 UTC)
Wrangler 4.146.0 (2026-10-01 16:34 UTC)
Wrangler 4.145.0 (2026-09-30 14:20 UTC)
Which Wrangler commands and flags were added or removed?
Wrangler 4.148.0 → 4.149.0
0 commands added, 0 removed, 0 commands with flags added or removed; 0 help pages changed in any way.
Method: bin/tool-snapshot ran --help for every wrangler subcommand of both versions in a throwaway Linux sandbox (430 and 430 help pages), then bin/tool-diff compared them. Hidden flags do not appear in --help.
- These are the last two minor versions. No command was added or removed and no help page changed because the newly supported
--temporaryand--event-codeflags onwrangler r2andwrangler containersare hidden.
Wrangler 4.147.0 → 4.148.0
0 commands added, 0 removed, 3 commands with flags added or removed; 5 help pages changed in any way.
Method: bin/tool-snapshot ran --help for every wrangler subcommand of both versions in a throwaway Linux sandbox (430 and 430 help pages), then bin/tool-diff compared them. Hidden flags do not appear in --help.
| Command | Flags added | Flags removed |
|---|---|---|
wrangler dev | --tunnel-allowed-mail | none |
wrangler kv namespace create | --experimental-mode | none |
wrangler queues subscription create | --source-namespace--source-repo-name | none |
- No command was added or removed;
kv namespace createalso gains the alias--x-mode, and thequeues subscription create --eventshelp now says to usepushed, notcf.artifacts.repo.pushed, forartifacts.repo.
What breaks when upgrading Wrangler, and how do I migrate?
| Version | Change | Migration |
|---|---|---|
| 4.148.0 | --temporary notices, the proof-of-work message and the claim URL moved from stdout to stderr. | Read the claim URL from stderr; stdout now carries only the command's own output (for example JSON from kv namespace list --temporary). |
| 4.131.0 | Removed the wrangler preview settings commands. | Check wrangler preview --help in your installed version for the current Preview commands. |
| 4.111.0 | Service environments, the legacy_env config field and the --legacy-env flag were removed; legacy_env in config is now an error. | Delete legacy_env from the config. With the old default (legacy_env = true) nothing changes; with legacy_env = false each environment now deploys as a standalone Worker <name>-<environment>. Fix page |
| 4.96.0 | Pipeline bindings: the pipeline field was renamed to stream. | Rename pipeline to stream in pipeline binding configuration. |
What Wrangler errors did we reproduce, and how do I fix them?
Fix pages (one error each, with a reproduction): The "legacy_env" field is no longer supported, so please remove it from your configuration file..
Event-code flag requires --temporary (Wrangler 4.149.0)
npx wrangler r2 bucket create my-bucket --event-code ABCD-1234--event-code requires --temporary.Fix: Add the hidden --temporary flag when specifying an event code: npx wrangler r2 bucket create my-bucket --temporary --event-code ABCD-1234. Event codes can only be used to create temporary event accounts. (source)
--temporary on R2 and Containers is rejected before 4.149.0 (Wrangler 4.148.0)
npx wrangler@4.148.0 r2 bucket list --temporaryUnknown argument: temporaryFix: Upgrade to 4.149.0 or later: 4.149.0 added hidden --temporary and --event-code support to wrangler r2 and wrangler containers commands for temporary event accounts. (source)
`wrangler deploy` in CI without an API token (Wrangler 4.149.0)
CI=1 npx wrangler deployIn a non-interactive environment, it's necessary to set a CLOUDFLARE_API_TOKEN environment variable for wrangler to work. Please go to https://developers.cloudflare.com/fundamentals/api/get-started/create-token/ for instructions on how to create an api token, and assign its value to CLOUDFLARE_API_TOKEN.Fix: Set CLOUDFLARE_API_TOKEN in the CI secrets, as the error says. --temporary uses a temporary account, not yours. (source)
`legacy_env` in the config is an error (Wrangler 4.149.0)
npx wrangler deploy --dry-run # wrangler.jsonc contains "legacy_env": false - The "legacy_env" field is no longer supported, so please remove it from your configuration file.
Service environments have been removed, and each environment is now deployed as its own Worker named "<name>-<environment>". This matches the behaviour of "legacy_env = true", which was the default, so removing the field will not change how your Worker is deployed.Fix: Remove legacy_env. If it was false, expect each environment to deploy as its own Worker. (source)
Wrangler release history by month
2026-10: 4.146.0 to 4.149.0 (4 releases to 2026-10-10)
2026-09: 4.128.0 to 4.145.0 (25 releases)
2026-08: 4.119.0 to 4.127.1 (11 releases)
2026-07: 4.107.0 to 4.118.0 (13 releases)
2026-06: 4.95.0 to 4.106.0 (12 releases)
2026-05: 4.88.0 to 4.94.0 (10 releases)
Sources
- wrangler on the npm registry (versions and publish times) (read 2026-10-10)
- cloudflare/workers-sdk releases (GitHub API) (read 2026-10-10)
- wrangler@4.149.0 release notes (read 2026-10-10)
- wrangler@4.148.0 release notes (read 2026-10-10)
- wrangler@4.147.0 release notes (read 2026-10-10)
- wrangler@4.146.0 release notes (read 2026-10-10)
- wrangler@4.145.0 release notes (read 2026-10-10)
- PR #16036: support temporary event accounts in R2 and Containers (read 2026-10-10)
- PR #16003: ship using and await using declarations untouched (read 2026-10-10)
- PR #16102: keep Preview secrets when deploying to existing Preview (read 2026-10-10)
- PR #15958: apply each action's own condition in r2 bucket lifecycle add (read 2026-10-10)
- PR #15632: honor Retry-After directives during static asset uploads (read 2026-10-10)
- PR #14620: remove service environments and legacy_env (read 2026-10-10)
- Cloudflare docs: Install/Update Wrangler (read 2026-10-10)
Last verified: 2026-10-10.