Install/Update Wrangler
Last updated Oct 12, 2026 Wrangler is a command-line tool for building with Cloudflare developer products.
Install Wrangler
To install Wrangler ↗︎, ensure you have Node.js ↗︎ and npm ↗︎ installed.
Use Vite+ (vp env) ↗︎ to install and manage Node.js versions.
For setup instructions, refer to Install vp globally ↗︎. You can use vp env without adding Vite+ to your project.
<details>
<summary>Wrangler System Requirements</summary>
We support running the Wrangler CLI with the <a href="https://nodejs.org/en/about/previous-releases">Current, Active, and Maintenance ↗︎</a> versions of Node.js. Your Worker will always be executed in <code>workerd</code>, the open source Cloudflare Workers runtime.
Wrangler is only supported on macOS 13.5+, Windows 11, and Linux distros that support glib 2.35. This follows <a href="https://github.com/cloudflare/workerd?tab=readme-ov-file#running-workerd"><code>workerd</code>'s OS support policy ↗︎</a>.
</details>
Wrangler is installed locally into each of your projects. This allows you and your team to use the same Wrangler version, control Wrangler versions for each project, and roll back to an earlier version of Wrangler, if needed.
To install Wrangler within your Worker project, run:
npmyarnpnpmbun
npm i -D wrangler@latest
yarn add -D wrangler@latest
pnpm add -D wrangler@latest
bun add -d wrangler@latest
Since Cloudflare recommends installing Wrangler locally in your project (rather than globally), the way to run Wrangler will depend on your specific setup and package manager. Refer to How to run Wrangler commands for more information.
Caution
If Wrangler is not installed, running npx wrangler will use the latest version of Wrangler.
Check your Wrangler version
To check your Wrangler version, run:
npx wrangler --version
// or
npx wrangler -v
Update Wrangler
To update the version of Wrangler used in your project, run:
npmyarnpnpmbun
npm i -D wrangler@latest
yarn add -D wrangler@latest
pnpm add -D wrangler@latest
bun add -d wrangler@latest
Related resources
- Commands - A detailed list of the commands that Wrangler supports.
- Configuration - Learn more about Wrangler's configuration file.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/workers/wrangler/install-and-update/#page","headline":"Install/Update Wrangler","description":"Get started by installing Wrangler, and update to newer versions by following this guide.","url":"https://developers.cloudflare.com/workers/wrangler/install-and-update/","inLanguage":"en","image":"https://developers.cloudflare.com/workers/wrangler/install-and-update/og.png?v=fbf1ae1973fa242d","dateModified":"2026-10-12","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Update Wrangler from v2 to v3 with no special migration steps required. Review deprecations and known issues. title: Migrate from Wrangler v2 to v3 image: https://developers.cloudflare.com/workers/wrangler/migration/update-v2-to-v3/og.png?v=aec7455ca9250075
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/workers/llms.txt
Use this file to discover all available pages before exploring further.
Docs