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 new5 fixed2 internal
Release note
Minor Changes
Add
wrangler ai-searchcommand namespace for managing Cloudflare AI Search instancesIntroduces a CLI surface for the Cloudflare AI Search API (open beta), including:
Instance management:
ai-search list,create,get,update,deleteSemantic search:
ai-search searchwith repeatable--filter key=valueflagsInstance stats:
ai-search stats
The
createcommand uses an interactive wizard to guide configuration. All commands require authentication viawrangler login.Add
--localflag to Workflows commands for interacting with local devAll Workflows CLI commands now support a
--localflag that targets a runningwrangler devsession instead of the Cloudflare production API. This uses the/cdn-cgi/explorer/api/workflowsendpoints served by the local dev server.wrangler workflows list --local wrangler workflows trigger my-workflow '{"key":"value"}' --local wrangler workflows instances describe my-workflow latest --local wrangler workflows instances pause my-workflow <id> --local --port 9000By default, commands continue to hit remote (production). Pass
--localto opt in, and optionally--portto specify a custom dev server port (defaults to 8787).
Patch Changes
Add minimum and maximum version checks for frameworks during auto-configuration
When Wrangler automatically configures a project, it now validates the installed version of the detected framework before proceeding:
If the version is below the minimum known-good version, the command exits with an error asking the user to upgrade the framework.
If the version is above the maximum known major version, a warning is emitted to let the user know the framework version has not been officially tested with this feature, and the command continues.
Fix
getPlatformProxyandunstable_getMiniflareWorkerOptionscrashing whenassetsis configured without adirectorygetPlatformProxyandunstable_getMiniflareWorkerOptionsnow skip asset setup when the config has anassetsblock but nodirectory— instead of throwing "missing requireddirectoryproperty". This happens when an external tool like@cloudflare/vite-pluginhandles asset serving independently.Fix autoconfig failing on
wakuprojects that usehonoWaku has a tight integration with Hono, causing both to be detected simultaneously and triggering a "multiple frameworks found" error. Hono is now filtered out when Waku is also detected.
Skip lock file warning for static projects during autoconfig
Previously, running autoconfig on a static project (one with no framework detected) would emit a misleading warning about a missing lock file, suggesting the project might be in a workspace. Since static projects don't require a lock file, this warning is now suppressed for them.
Skip unnecessary
GET /versions?deployable=trueAPI call inwrangler versions deploywhen all version IDs are explicitly provided and--yesis passedWhen deploying a specific version non-interactively (e.g.
wrangler versions deploy <id> --yes), Wrangler previously always fetched the full list of deployable versions to populate the interactive selection prompt — even though the prompt is skipped entirely when--yesis used and all versions are already specified. The deployable-versions list is now only fetched when actually needed (i.e. when no version IDs are provided, or when running interactively).Improve error message when the assets directory path points to a file instead of a directory
Previously, if the path provided as the assets directory (via
--assetsflag orassets.directoryconfig) pointed to an existing file rather than a directory, Wrangler would throw an unhelpfulENOTDIRsystem error when trying to read the_redirectsfile inside it. Now Wrangler detects this condition earlier and throws a clear user 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.