添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Skip to content

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, preferably using a Node version manager like Volta or nvm . Using a version manager helps avoid permission issues and allows you to change Node.js versions. Wrangler requires a Node version of 16.17.0 or later.

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:

Terminal window
npm install wrangler --save-dev

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.

Check your Wrangler version

To check your Wrangler version, run:

Terminal window
npx wrangler --version
// or
npx wrangler version
// or
npx wrangler -v

Update Wrangler

To update the version of Wrangler used in your project, run: