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
7 new1 fixed2 internal
Release note
Minor Changes
Add
artifacts:writeto Wrangler's default OAuth scopes, enablingwrangler loginto request access to Cloudflare Artifacts (registries and artifacts).Add Flagship feature flag binding support
Adds end-to-end support for the Flagship feature flag binding, which allows Workers to evaluate feature flags from Cloudflare's Flagship service. Configure it in
wrangler.jsonwith aflagshiparray containingbindingandapp_identries. In local dev, the binding returns default values for all flag evaluations; use"remote": truein the binding to evaluate flags against the live Flagship service.Added the
wrangler previewcommand family for creating Preview deployments (currently in private beta).Add
previewoutput-file entries forwrangler previewdeploymentswrangler previewnow writes apreviewentry to the Wrangler output file whenWRANGLER_OUTPUT_FILE_PATHorWRANGLER_OUTPUT_FILE_DIRECTORYis configured. The entry includes the Worker name, preview metadata (preview_id,preview_name,preview_slug,preview_urls) and deployment metadata (deployment_id,deployment_urls).This makes preview command runs machine-readable in the same output stream as other Wrangler commands, which helps CI integrations consume preview URLs and IDs directly.
Add
wrangler browsercommands for managing Browser Rendering sessionsNew commands for Browser Rendering DevTools:
wrangler browser create [--lab] [--keepAlive <seconds>] [--open]- Create a new sessionwrangler browser close <sessionId>- Close a sessionwrangler browser list- List active sessionswrangler browser view [sessionId] [--target <selector>] [--open]- View a live browser session
The
viewcommand auto-selects when only one session exists, or prompts for selection when multiple are available.The
--openflag controls whether to open DevTools in browser (default: true in interactive mode, false in CI/scripts). Use--no-opento just print the DevTools URL.All commands support
--jsonfor programmatic output. Also addsbrowser:writeOAuth scope towrangler login.Add telemetry to local REST API
The local REST API (used by the local explorer) now collects anonymous usage telemetry. This respects any existing telemetry preferences, which can be disabled by running the command
wrangler telemetry disable.This only applies when the dev session is started via Wrangler, and not via the Vite plugin or standalone Miniflare.
No actual data values, keys, query contents, or resource IDs are collected.
Event schema:
{ "event": "localapi.<route>.<method>", // e.g. localapi.kv.keys.get "deviceId": "<uuid>", "timestamp": 1234567890, "properties": { "userAgent": "Mozilla/5.0 ...", // Only for localapi.local.workers.get: "workerCount": 2, "kvCount": 3, "d1Count": 1, "r2Count": 0, "doCount": 1, "workflowsCount": 0 } }Note: the Local Explorer and corresponding local REST API is still an experimental feature.
explorer: Expose the local explorer hotkey
List the local explorer's hotkey
[e]in wrangler dev output.
Patch Changes
Keep proxy notices off stdout for JSON Wrangler commands
Wrangler now writes the startup notice for
HTTP_PROXYandHTTPS_PROXYto stderr instead of stdout. This keeps commands likewrangler auth token --jsonmachine-readable when a proxy is configured.
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.