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
3 new2 fixed1 internal
Release note
Minor Changes
Add
--secrets-fileparameter towrangler deployandwrangler versions uploadYou can now upload secrets alongside your Worker code in a single operation using the
--secrets-fileparameter on bothwrangler deployandwrangler versions upload. The file format matches what's used bywrangler versions secret bulk, supporting both JSON and .env formats.Example usage:
wrangler deploy --secrets-file .env.production wrangler versions upload --secrets-file secrets.json
Secrets not included in the file will be inherited from the previous version, matching the behavior of
wrangler versions secret bulk.Add
wrangler containers instances <application_id>command to list container instancesLists all container instances for a given application, matching the Dash instances view. Displays instance ID, state, location, version, and creation time. Supports pagination for applications with many instances. Also adds paginated request support to the containers-shared API client.
Patch Changes
Add
escapeCodeTimeoutoption toonKeyPressutility for faster Esc key detectionThe
onKeyPressutility now accepts an optionalescapeCodeTimeoutparameter that controls how long readline waits to disambiguate a standalone Esc press from multi-byte escape sequences (e.g. arrow keys). The default remains readline's built-in 500ms, but callers can pass a lower value (e.g. 25ms) for near-instant Esc handling in interactive prompts.Fix autoconfig package installation always failing at workspace roots
When running autoconfig at the root of a monorepo workspace, package installation commands now include the appropriate workspace root flags (
--workspace-rootfor pnpm,-Wfor yarn). This prevents errors like "Running this command will add the dependency to the workspace root" that previously occurred when configuring projects at the workspace root.Additionally, autoconfig now allows running at the workspace root if the root directory itself is listed as a workspace package (e.g.,
workspaces: ["packages/*", "."]).Fix unclear error when assets upload session returns a
nullresponseWhen deploying assets, if the Cloudflare API returns a
nullresponse object, Wrangler now provides a clear error message asking users to retry instead of failing with a confusing error.
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.