Wrangler is a command-line tool for building with Cloudflare developer products.
To install , ensure you have and installed, preferably using a Node version manager like or . Using a version manager helps avoid permission issues and allows you to change Node.js versions. Wrangler requires a Node.js version of
16.13.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 rollback to an earlier version of Wrangler, if needed.
To install Wrangler within your Worker project, run:
$ npm install wrangler --save-dev
$ yarn add --dev wrangler
Check your Wrangler version
To check your Wrangler version, run:
$ wrangler --version// or run:$ wrangler version
To update the version of Wrangler used in your project, run:
$ npm install wrangler@latest