Wrangler
Reasonable, with limits. 5th of 8 infrastructure as code.
Wrangler is Cloudflare's official CLI for developing, configuring and deploying Workers. It is very active and almost every Cloudflare Workers project uses it. As an infrastructure-as-code tool it is limited: it covers Cloudflare only, its config is JSON/TOML rather than TypeScript code, and Cloudflare has announced that its new `cf` CLI (in open beta) will replace it, with 18 months of maintenance after that beta ends.
Best for: Teams that build and deploy Cloudflare Workers today and want the official, best-supported dev and deploy loop.
Scores
Overall5.6
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
For a Cloudflare Workers project today, Wrangler is still the default dev and deploy tool, and `cf` is only in beta. As a pick in the TypeScript IaC category, it is Cloudflare-only, its config is not code, and a successor has been announced. Alchemy or Pulumi do the job of describing resources in TypeScript better. It ranks below Pulumi and AWS CDK and above archived CDKTF.
- blog.cloudflare.com/cloudflare-cf-cli-launch: Successor announced
- peers: Alchemy and Pulumi offer TypeScript resource models for Cloudflare
- npm downloadsLast4Weeks: Very wide use among Workers projects
GPT-6.2 Sol: 5.7, likely 4.6 to 7.0
Wrangler is a practical stable choice for a new Workers app that needs local testing, bindings, and deployment today. Pulumi is a stronger fit for managing cloud resources in TypeScript across providers, and AWS CDK fits that job on AWS. Cloudflare’s planned transition to `cf` lowers the recommendation for a long-lived project, with the range driven by migration effort and how much infrastructure the team needs to manage.
- developers.cloudflare.com/workers/wrangler/configuration: Strong Workers deployment workflow with declarative configuration
- pulumi.com/topics/infrastructure-as-code/javascript-and-infrastructure-as-code: General-purpose TypeScript infrastructure across providers
- docs.aws.amazon.com/cdk/v2/guide/home.html: TypeScript infrastructure constructs for AWS
- blog.cloudflare.com/cloudflare-cf-cli-launch: Cloudflare’s published plan to replace Wrangler
- architecture.mnppi.org/delivery/cf-cli-and-cloudflare-config: Independent migration pilots kept Wrangler for some projects
Needed by many3.6
How many developers need a tool for this job?
Claude Opus 5.5: 3.5, likely 2.5 to 4.5
Only developers who deploy to Cloudflare Workers need it. That is a large but clear niche inside the IaC category. It also does the category's job, describing resources in TypeScript code, only in part: its config is a JSON/TOML file.
- project.note: CLI of Cloudflare Workers only
- developers.cloudflare.com/workers/wrangler/configuration: Resources are declared in wrangler.jsonc/toml
GPT-6.2 Sol: 3.7, likely 2.7 to 4.8
Wrangler serves a clear niche of teams deploying applications and their supporting resources to Cloudflare Workers. In State of JavaScript 2025, 1,702 of the 9,593 people who answered the edge and serverless runtime question reported using Workers regularly. That survey measures runtime use, so the share of developers who need Wrangler itself is less certain.
- 2025.stateofjs.com/en-US/other-tools: Regular Workers use among survey respondents
- developers.cloudflare.com/cf/wrangler: Wrangler covers Workers and a subset of Cloudflare products
Helps a lot6.2
How well does it do the job for those who need it?
Claude Opus 5.5: 5.5, likely 4.5 to 7.0
As a Workers dev and deploy tool it is strong: the local runtime matches production, bindings are typed, and auto-provisioning now covers KV, R2, D1, Queues and more. As IaC it is weak. It has no TypeScript resource model, covers only part of Cloudflare's products, and Cloudflare's own guide pairs it with Pulumi to manage everything else. Alchemy and Pulumi describe Cloudflare resources in code more completely.
- developers.cloudflare.com/workers/wrangler/configuration: Auto-provisioning for KV, R2, D1, Queues and others; IDs written back to config
- developers.cloudflare.com/pulumi/tutorial/dynamic-provider-and-wrangler: Cloudflare pairs Wrangler with Pulumi for other resources
- infoq.com/news/2026/10/cloudflare-cf-cli: Cloudflare calls Wrangler's ~280 commands inconsistent
GPT-6.2 Sol: 6.8, likely 5.8 to 7.9
Version 4.166.0 combines local execution, generated binding types, automatic provisioning for common resources, and gradual deploys. The generated types help catch binding mistakes in code written by developers and agents, while infrastructure configuration uses JSON or TOML. Pulumi covers a broader set of Cloudflare resources in TypeScript, and users have reported regressions in local development. The range reflects how much the project depends on the Workers workflow versus broader resource management.
- developers.cloudflare.com/workers/wrangler/configuration: Configuration formats and supported automatic provisioning
- developers.cloudflare.com/workers/local-development: Local runtime and simulated bindings
- developers.cloudflare.com/workers/languages/typescript: Generated types reflect bindings and runtime settings
- developers.cloudflare.com/workers/versions-and-deployments/gradual-deployments: Versioned releases and traffic splitting
- pulumi.com/registry/packages/cloudflare/api-docs: Broader Cloudflare resource coverage with TypeScript support
- github.com/cloudflare/workers-sdk/issues/14916: User-reported local D1 regression, fixed in October 2026
Holds up over time4.5
Will it still be a good choice in two years?
Claude Opus 5.5: 4.5, likely 3.0 to 6.0
Activity is very high: 2,788 commits, 148 npm versions and 639 contributors, all funded by Cloudflare. But Cloudflare has announced that `cf` will replace Wrangler. A final major version will point users to `cf`, followed by 18 months of maintenance. The end date of the beta is unknown, so the range is wide.
- github commitsLastYear: 2788 commits, 1607 releases in the repo
- npm versionsLastYear: 148 wrangler versions
- blog.cloudflare.com/cloudflare-cf-cli-launch: cf to replace Wrangler; 18 months maintenance after beta
- flaviocopes.com/cloudflare-cf.md: cloudflare.config.ts replaces wrangler.jsonc
GPT-6.2 Sol: 4.5, likely 3.3 to 5.8
Cloudflare is still actively maintaining Wrangler, with 148 npm versions published in the past year. It plans a final major release and 18 months of maintenance after the `cf` beta ends, and `cf` has already reached release candidate 2. Some migrations still require manual work. The date that starts the support window and the effort required to migrate a real project make the two-year outlook uncertain.
- npm versionsLastYear and latestPublishedAt: 148 package versions and a November 20 release
- github.com/cloudflare/workers-sdk/releases/tag/wrangler@4.166.0: Recent Wrangler features and fixes
- blog.cloudflare.com/cloudflare-cf-cli-launch: Final major release and 18-month maintenance plan
- github.com/cloudflare/cf/releases: Release candidate 2 shipped on November 19
- developers.cloudflare.com/cf/wrangler: Migration requires manual work for some settings
Used widely6.5
How many use it, and is that growing?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Downloads are 175M per 4 weeks, up 21x from a year ago, far above the 4.1 median. Much of that is transitive: the Cloudflare Vite plugin, the Vitest pool and framework adapters all install wrangler, and CI adds more. Dependents (3,545 repos) are second only to AWS CDK among the peers, which still points to very broad direct use.
- npm downloadsLast4Weeks: 174.8M vs 8.2M a year ago
- dependents.repos: 3545 repos, vs AWS CDK 4665 and Pulumi 2143
- bluesky.posts: 28 posts, highest among peers
GPT-6.2 Sol: 5.5, likely 4.1 to 7.0
Four-week npm downloads rose from 8.2 million to 174.8 million, a 21.3× increase against the catalog median of 4.1×. Ecosyste.ms found 3,545 dependent repositories, second among the supplied peers behind AWS CDK. CI installs and indirect installs through Cloudflare plugins inflate the npm count, and repository stars and Bluesky links cover the whole Workers SDK. The package gained ground in installs, while growth in direct project choices is harder to measure.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: 21.3× year-over-year growth against a 4.1× median
- dependents and peers dependentRepos: 3,545 tracked repositories and 209 tracked packages
- github stars, bluesky posts, and project note: 4,738 stars and 28 posts for the shared SDK
- github.com/getsentry/toolkit/blob/main/docs/releases/cloudflare.md: Sentry documents direct and transitive Wrangler installs
Vouched for6.8
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 5.0 to 7.5
Cloudflare backs it as the official tool, and the major frameworks' Cloudflare adapters and Cloudflare's Vite plugin build on it. Independent write-ups are thin, and Hacker News attention is minimal. Cloudflare choosing to replace it is itself a mixed signal.
- hackerNews.stories: 2 stories with 1-2 points
- bluesky.top: Users praise the Vite plugin; one reports hours lost to a bug
- framework adapters: Astro, Nuxt, SvelteKit and React Router Cloudflare tooling build on wrangler
GPT-6.2 Sol: 7.6, likely 6.5 to 8.6
Sentry documents Wrangler in its production deployment workflow. Astro recommends it for Workers deploys, and OpenNext uses it to preview adapted Next.js apps on the Workers runtime. That supports confidence in the deployment workflow, while direct satisfaction and comparative performance evidence for Wrangler as an infrastructure tool is limited.
- github.com/getsentry/toolkit/blob/main/docs/releases/cloudflare.md: Sentry pins Wrangler in production deployment tooling
- docs.astro.build/en/guides/deploy/cloudflare: Astro’s official guide uses Wrangler to deploy
- opennext.js.org/cloudflare: OpenNext uses Wrangler to run adapted builds locally
Safe7.1
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
There are four advisories in total. They include a critical 2024 RCE in the `wrangler dev` sandbox and a high-severity 2026 command injection through `--commit-hash`. All were fixed with patched releases, including backports to v3. The package pulls in 13 dependencies, and no Scorecard is available. It is published by a company team under a permissive licence.
- advisories: 4 total, 1 in last 24 months, all fixed
- osv.dev/vulnerability/GHSA-36p8-mvp6-cv38: Command injection fixed in 4.59.1 and 3.114.17
- npm dependencies: 13 direct dependencies
- scorecard: No OpenSSF Scorecard data
GPT-6.2 Sol: 7.6, likely 6.4 to 8.7
The four listed advisories affect older releases, and Cloudflare patched the 2026 Pages deployment issue on both v3 and v4 before public disclosure. The package uses a permissive MIT or Apache-2.0 license and is published through GitHub Actions, with provenance recorded for recent releases. Its 13 direct dependencies and local runtime add exposure, and the available evidence lacks an OpenSSF Scorecard or a verified count of people with release access.
- npm dependencies, npm license, advisories, and scorecard: 13 direct dependencies, four advisories, and no Scorecard result
- github.com/advisories/GHSA-36p8-mvp6-cv38: January 21 disclosure lists fixes for both major versions
- github.com/cloudflare/workers-sdk/releases/tag/wrangler@4.59.1: Patched v4 release shipped January 13
- github.com/cloudflare/workers-sdk/releases/tag/wrangler@3.114.17: Patched v3 release shipped January 13
- github.com/cloudflare/workers-sdk/blob/main/.github/workflows/README.md: Automated npm publishing and trusted-publisher configuration
- inlinr.com/packages/wrangler/security: Advisory fix versions and recent npm provenance
- developers.cloudflare.com/workers/local-development: Local runtime lacks hardened isolation for untrusted code
Good
- Official tool with very frequent releases and Cloudflare engineers working on it full time.
- Local dev through Miniflare/workerd closely matches production, and the Vite and Vitest integrations build on it.
- Automatic provisioning creates KV, R2, D1, Queues and other resources on deploy and writes their IDs back to the config.
- Typed bindings come from `wrangler types`, and AI agents know the tool well.
Bad
- Works only on Cloudflare, and resources are declared in wrangler.jsonc/toml, not in TypeScript code.
- It does not manage DNS, zones or many other Cloudflare products, so teams pair it with Terraform, Pulumi or Alchemy.
- Cloudflare plans to replace it with the new `cf` CLI and its `cloudflare.config.ts`, so new projects face a migration.
- The command set grew piece by piece across product teams, and Cloudflare itself calls its 280 commands inconsistent.
The numbers
- npm downloads, 4 weeks
- 175M ×21 in a year
- GitHub stars
- 4.7k
- Commits, 12 months
- 2.8k
- npm version
- 4.166.0 Nov 2026
- Versions, 12 months
- 148
- Advisories, 24 months
- 1 of 4 ever
- OpenSSF Scorecard
- None
- Licence
- Apache-2.0
The command-line tool of Cloudflare Workers. The repository holds all of Cloudflare’s Workers SDK.
Read on 21 November 2026 from GitHub (cloudflare/workers-sdk), npm (wrangler), OSV and the OpenSSF Scorecard.