Install / Update
npm i @cloudflare/wrangler -gAssuming you have Rust’s package manager, Cargo ↗, installed, run:
cargo install wranglerOtherwise, to install Cargo, you must first install rustup. On Linux and macOS systems, rustup can be installed as follows:
curl https://sh.rustup.rs -sSf | shAdditional installation methods are available on the Rust site ↗.
Windows users will need to install Perl as a dependency for openssl-sys — Strawberry Perl ↗ is recommended.
After Cargo is installed, you may now install Wrangler:
cargo install wrangler-
Download the binary tarball for your platform from the releases page ↗. You do not need the
wranglerjs-*.tar.gzdownload – Wrangler will install that for you. -
Unpack the tarball and place the Wrangler binary somewhere on your
PATH, preferably/usr/local/binfor Linux/macOS orProgram Filesfor Windows.
To update Wrangler ↗, run one of the following:
npm update -g @cloudflare/wranglercargo install wrangler --force