wrangler
4.164.0 · 17 Nov 2026MIT OR Apache-2.047.9M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgrade- 4.x4.164.0Safe from 4.59.1Latest line
- 3.x3.114.17Safe from 3.114.17To 4.164.0
- 2.x and older2.21.32 open advisories, worst high · last release Mar 2025, no longer updatedTo 4.164.0
Latest releases
All 557 releases4.164.0
17 Nov 2026Add custom CA and client certificate references to Workers VPC service TLS settings
Workers VPC (open beta) service create and update commands accept
--certificate-authorityand--client-certificateUUIDs. Use either flag alone or both together. Whenever you supply either reference, explicitly choose--cert-verification-mode:For HTTP services, these settings apply to HTTPS connections, not plaintext HTTP. TCP services can use them for upstream TLS, including PostgreSQL.
TLS settings are per-service only: host and resolver networks have no TLS settings or inheritance. Omitting TLS settings uses platform defaults (certificate chain and hostname verification). Explicit mode-only configuration, including
verify_full, is accepted. A custom CA cannot be combined withdisabled; a client certificate without a custom CA can.Upload certificates using the existing commands, then use the returned IDs below. Replace
<ca-uuid>,<client-uuid>,<tunnel-uuid>, and service IDs with your own values; certificate references must be valid UUIDs. Upload replacement certificates the same way before rotating their references.pnpm exec wrangler cert upload certificate-authority --ca-cert ./ca.pem --name private-ca pnpm exec wrangler cert upload mtls-certificate --cert ./client.pem --key ./client-key.pem --name private-client
Create an HTTPS service with both a custom trust chain and an mTLS client certificate, or a PostgreSQL TCP service with only a custom CA:
pnpm exec wrangler vpc service create private-web \ --type http --https-port 443 --ipv4 10.0.0.10 --tunnel-id <tunnel-uuid> \ --certificate-authority <ca-uuid> --client-certificate <client-uuid> \ --cert-verification-mode verify_full pnpm exec wrangler vpc service create private-db \ --type tcp --tcp-port 5432 --app-protocol postgresql \ --hostname db.internal.example --resolver-ips 10.0.0.53 --tunnel-id <tunnel-uuid> \ --certificate-authority <ca-uuid> --cert-verification-mode verify_full
For client-certificate-only configuration, use
--client-certificate <client-uuid> --cert-verification-mode verify_fullinstead of the certificate flags in either create command.Updates replace the complete service configuration, including TLS settings, in a single request, the same as
cf workers-vpc services update. Pass every TLS option the service should keep: certificate references and the verification mode that you omit are cleared, and an update without TLS options returns the service to the platform defaults. Removing a reference releases its backend certificate binding but does not delete the uploaded account certificate. For example, rotate the web service's client certificate while keeping its CA:pnpm exec wrangler vpc service update <web-service-uuid> \ --name private-web --type http --https-port 443 \ --ipv4 10.0.0.10 --tunnel-id <tunnel-uuid> \ --certificate-authority <ca-uuid> --client-certificate <replacement-client-uuid> \ --cert-verification-mode verify_full
To remove the CA while keeping the client certificate, repeat the update with only
--client-certificate <client-uuid>and a verification mode.Inspect the service's verification mode and CA/client certificate UUIDs (or
None), without exposing certificate or private-key contents:pnpm exec wrangler vpc service get <service-uuid>
Minor Changes
Add custom CA and client certificate references to Workers VPC service TLS settings
Workers VPC (open beta) service create and update commands accept
--certificate-authorityand--client-certificateUUIDs. Use either flag alone or both together. Whenever you supply either reference, explicitly choose--cert-verification-mode:verify_full: verify the origin certificate chain and hostname (the platform default).verify_ca: verify the chain but skip hostname verification, weakening origin identity checks.disabled: do not verify the origin certificate; this allows connections to impersonated origins and is unsafe for production.
For HTTP services, these settings apply to HTTPS connections, not plaintext HTTP. TCP services can use them for upstream TLS, including PostgreSQL.
TLS settings are per-service only: host and resolver networks have no TLS settings or inheritance. Omitting TLS settings uses platform defaults (certificate chain and hostname verification). Explicit mode-only configuration, including
verify_full, is accepted. A custom CA cannot be combined withdisabled; a client certificate without a custom CA can.Upload certificates using the existing commands, then use the returned IDs below. Replace
<ca-uuid>,<client-uuid>,<tunnel-uuid>, and service IDs with your own values; certificate references must be valid UUIDs. Upload replacement certificates the same way before rotating their references.pnpm exec wrangler cert upload certificate-authority --ca-cert ./ca.pem --name private-ca pnpm exec wrangler cert upload mtls-certificate --cert ./client.pem --key ./client-key.pem --name private-client
Create an HTTPS service with both a custom trust chain and an mTLS client certificate, or a PostgreSQL TCP service with only a custom CA:
pnpm exec wrangler vpc service create private-web \ --type http --https-port 443 --ipv4 10.0.0.10 --tunnel-id <tunnel-uuid> \ --certificate-authority <ca-uuid> --client-certificate <client-uuid> \ --cert-verification-mode verify_full pnpm exec wrangler vpc service create private-db \ --type tcp --tcp-port 5432 --app-protocol postgresql \ --hostname db.internal.example --resolver-ips 10.0.0.53 --tunnel-id <tunnel-uuid> \ --certificate-authority <ca-uuid> --cert-verification-mode verify_full
For client-certificate-only configuration, use
--client-certificate <client-uuid> --cert-verification-mode verify_fullinstead of the certificate flags in either create command.Updates replace the complete service configuration, including TLS settings, in a single request, the same as
cf workers-vpc services update. Pass every TLS option the service should keep: certificate references and the verification mode that you omit are cleared, and an update without TLS options returns the service to the platform defaults. Removing a reference releases its backend certificate binding but does not delete the uploaded account certificate. For example, rotate the web service's client certificate while keeping its CA:pnpm exec wrangler vpc service update <web-service-uuid> \ --name private-web --type http --https-port 443 \ --ipv4 10.0.0.10 --tunnel-id <tunnel-uuid> \ --certificate-authority <ca-uuid> --client-certificate <replacement-client-uuid> \ --cert-verification-mode verify_full
To remove the CA while keeping the client certificate, repeat the update with only
--client-certificate <client-uuid>and a verification mode.Inspect the service's verification mode and CA/client certificate UUIDs (or
None), without exposing certificate or private-key contents:pnpm exec wrangler vpc service get <service-uuid>
4.163.0
16 Nov 2026Write Build Output to
.cloudflare/output/v1/and record the producervite buildand the experimentalwrangler build --experimental-cf-build-outputnow write Build Output v1, with account settings nested undersettingsin the rootconfig.json. They also record themselves as theproducer, so readers can name the tool that wrote the output in error messages. Previews from Build Output read the account settings from their new location.Start local Workflows from Artifacts events
Declare Artifacts events on
exports.workflow({ name, events })incloudflare.config.tsto start the owning Workflow locally incf, Vite, and Workers Vitest. Wrangler configurations continue to usetriggers.events. Native config conversion derives those targets from the Workflow export, andcf migrateattaches existing event subscriptions to their matching Workflow exports.Local Artifacts namespaces publish the documented
cf.artifacts.*messages for repository create, import, fork, and delete operations and token creation and revocation. Successful create, import, and fork operations also publish the initial token-created event. Delivery follows the committed mutation, is unordered, and does not fail the repository operation if a destination rejects it. Push, clone, and fetch events are not yet published locally. This feature does not provide local Artifacts-to-queue subscriptions.Run experimental cf projects with their installed Vite or Vite+ commands
cf dev,cf build, and deployments that build your project can use Vite or Vite+ even when no framework command is detected. This removes the need for the internalcf-vitedelegate and supports dependencies declared and hoisted at the root of a configured workspace. A workspace application using a custom-named Vite config should declare@cloudflare/vite-pluginin its own manifest, or addviteorvite-plusas a dependency or dev dependency to identify its tooling; this keeps shared root tools from selecting Vite for non-Vite siblings. Configs passed later via--configare evaluated by Vite when the command runs. Existing framework commands keep their priority. Consumers resolve bare executables using the detectednodeModulesPathsin order, adding.binto each directory. Lookup stops at the validated workspace root; standalone applications use only their ownnode_modules/.bin.Project inspection can recognize an existing Cloudflare configuration before dependencies are installed. Running a command provides guidance when the required tools are missing or the plugin version does not support cf profiles (
>=2.0.0-beta.v.13 <3). Vite evaluates the project configuration when the command runs, including dynamic configs and custom config files. Repair guidance uses the project’s detected package manager. Automatic setup asks users to convert CommonJS.cjsand.ctsVite configs to ESM imports and exports in.mjsor.mtsbefore adding the ESM-only Cloudflare plugin. Native builds also work with the Windows shell. Pages migration safeguards, unsupported-framework setup checks, and Wrangler command selection retain their existing behavior.
Minor Changes
Write Build Output to
.cloudflare/output/v1/and record the producervite buildand the experimentalwrangler build --experimental-cf-build-outputnow write Build Output v1, with account settings nested undersettingsin the rootconfig.json. They also record themselves as theproducer, so readers can name the tool that wrote the output in error messages. Previews from Build Output read the account settings from their new location.Start local Workflows from Artifacts events
Declare Artifacts events on
exports.workflow({ name, events })incloudflare.config.tsto start the owning Workflow locally incf, Vite, and Workers Vitest. Wrangler configurations continue to usetriggers.events. Native config conversion derives those targets from the Workflow export, andcf migrateattaches existing event subscriptions to their matching Workflow exports.Local Artifacts namespaces publish the documented
cf.artifacts.*messages for repository create, import, fork, and delete operations and token creation and revocation. Successful create, import, and fork operations also publish the initial token-created event. Delivery follows the committed mutation, is unordered, and does not fail the repository operation if a destination rejects it. Push, clone, and fetch events are not yet published locally. This feature does not provide local Artifacts-to-queue subscriptions.
Patch Changes
Run experimental cf projects with their installed Vite or Vite+ commands
cf dev,cf build, and deployments that build your project can use Vite or Vite+ even when no framework command is detected. This removes the need for the internalcf-vitedelegate and supports dependencies declared and hoisted at the root of a configured workspace. A workspace application using a custom-named Vite config should declare@cloudflare/vite-pluginin its own manifest, or addviteorvite-plusas a dependency or dev dependency to identify its tooling; this keeps shared root tools from selecting Vite for non-Vite siblings. Configs passed later via--configare evaluated by Vite when the command runs. Existing framework commands keep their priority. Consumers resolve bare executables using the detectednodeModulesPathsin order, adding.binto each directory. Lookup stops at the validated workspace root; standalone applications use only their ownnode_modules/.bin.Project inspection can recognize an existing Cloudflare configuration before dependencies are installed. Running a command provides guidance when the required tools are missing or the plugin version does not support cf profiles (
>=2.0.0-beta.v.13 <3). Vite evaluates the project configuration when the command runs, including dynamic configs and custom config files. Repair guidance uses the project’s detected package manager. Automatic setup asks users to convert CommonJS.cjsand.ctsVite configs to ESM imports and exports in.mjsor.mtsbefore adding the ESM-only Cloudflare plugin. Native builds also work with the Windows shell. Pages migration safeguards, unsupported-framework setup checks, and Wrangler command selection retain their existing behavior.Stop
wrangler devfrom missing config file changes made soon after a reloadwrangler devreplaced its config file watcher on every reload without waiting for the new one to start, so a change saved in that gap was never applied. It now keeps one watcher while the set of watched files is unchanged, and reports a config as applied only once its files are being watched. A second change saved within 50 ms of the previous one is no longer dropped either.Use the effective
max_instancesvalue when choosing the default container rollout stepsWhen
max_instanceswas omitted, Wrangler deployed 20 instances but chose rollout steps as if there were 0 instances, so the rollout used a single 100% step. Wrangler now uses[10, 100]for omittedmax_instances, while still using a single 100% step whenmax_instancesis 0 or 1.Avoid redundant OAuth refreshes after a sibling process updates credentials
Check access-token expiry and select the refresh token from the same fresh credential snapshot. When a sibling has already saved a valid access token, reuse it without another exchange or write. This prevents an unnecessary rotation that can let an older response overwrite a newer refresh token.
Detect Cloudflare Build Output of any version before deploying
wrangler deploy,wrangler versions uploadandwrangler previewrefuse to run in a project that has Cloudflare Build Output, because that output belongs tocf. Detection now looks for any.cloudflare/output/v<N>/directory rather than only the root config of the current version, so output left by an older or newercfis still caught.
4.162.0
13 Nov 2026Use the local simulator for Artifacts bindings that omit
remoteBehavior change: Artifacts bindings now default to the local simulator during development, like KV, R2 and D1. Previously, an omitted
remotein Wrangler and the Vite plugin used the deployed Artifacts resource. If you want deployed repos inwrangler devorvite dev, set"remote": trueon the binding (dev: { remote: true }incloudflare.config.ts). Artifacts is in beta, so this ships as a minor release.While
remoteis omitted,wrangler dev,getPlatformProxy()and the Vite plugin warn when remote bindings are enabled, once for each binding rather than on every config reload: "Artifacts binding REPOS uses the local simulator by default. Setremote: trueto use deployed repos, orremote: falseto silence this warning." Workers Vitest andwrangler dev --localalready used the simulator, so they don't warn. Local Artifacts needs no Cloudflare credentials, but requires Git 2.32 or newer on the host.Reject settings on a
workflowsbinding to a Workflow declared inexportsA
workflowsbinding can still bind a Workflow that the Worker declares inexports, but it can no longer setlimits,concurrency,schedules,default_retention, orjurisdictionfor it. Set them on the export instead. Previously the binding and the export could both set them as long as they agreed, so configurations that set them on the binding now stop with an error that says which setting to move.Upload Workflow export settings with the Worker
wrangler deployandwrangler versions uploadnow include the settings of eachworkflowexport (limits,concurrency,schedules,default_retention, andjurisdiction) in the upload, instead of sending only its type and name. Uploads of a Worker withworkflowexports also send aCloudflare-Workers-Script-Api-Dateheader, which lets the Workers API provision Workflow exports from these settings as part of the upload.wrangler deployandwrangler triggers deploystill create or update each Workflow through the Workflows API afterwards, as before.If provisioning a scheduled Workflow fails because the account is on the free plan,
wrangler deploynow explains that scheduled Workflows require a paid Workers plan.
Minor Changes
Use the local simulator for Artifacts bindings that omit
remoteBehavior change: Artifacts bindings now default to the local simulator during development, like KV, R2 and D1. Previously, an omitted
remotein Wrangler and the Vite plugin used the deployed Artifacts resource. If you want deployed repos inwrangler devorvite dev, set"remote": trueon the binding (dev: { remote: true }incloudflare.config.ts). Artifacts is in beta, so this ships as a minor release.While
remoteis omitted,wrangler dev,getPlatformProxy()and the Vite plugin warn when remote bindings are enabled, once for each binding rather than on every config reload: "Artifacts binding REPOS uses the local simulator by default. Setremote: trueto use deployed repos, orremote: falseto silence this warning." Workers Vitest andwrangler dev --localalready used the simulator, so they don't warn. Local Artifacts needs no Cloudflare credentials, but requires Git 2.32 or newer on the host.Reject settings on a
workflowsbinding to a Workflow declared inexportsA
workflowsbinding can still bind a Workflow that the Worker declares inexports, but it can no longer setlimits,concurrency,schedules,default_retention, orjurisdictionfor it. Set them on the export instead. Previously the binding and the export could both set them as long as they agreed, so configurations that set them on the binding now stop with an error that says which setting to move.Upload Workflow export settings with the Worker
wrangler deployandwrangler versions uploadnow include the settings of eachworkflowexport (limits,concurrency,schedules,default_retention, andjurisdiction) in the upload, instead of sending only its type and name. Uploads of a Worker withworkflowexports also send aCloudflare-Workers-Script-Api-Dateheader, which lets the Workers API provision Workflow exports from these settings as part of the upload.wrangler deployandwrangler triggers deploystill create or update each Workflow through the Workflows API afterwards, as before.If provisioning a scheduled Workflow fails because the account is on the free plan,
wrangler deploynow explains that scheduled Workflows require a paid Workers plan.
Patch Changes
Fix packages with nested
package.jsonfiles missing from deploy metadataPackages such as
hono,stripeand@modelcontextprotocol/sdkwere silently omitted from the package dependency metadata reported duringwrangler deployandwrangler versions upload. These packages are now included with their installed versions. Autoconfig and codemods also detect their installed versions correctly.Fix requests hanging when a local Worker reload finishes before an inflight request fails
Wrangler now immediately processes retriable requests when the replacement Worker is already ready. Previously, these requests could remain queued until another request arrived, particularly on Windows where connection failures can take longer to report.
Dependency tracking
Know when your own dependencies move
wrangler had 1 security advisory in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 18 Nov 2026. Releases and advisories last read 18 Nov 2026.