cloudflare · Cloudflare Workers Docs
Workers 2. Update to Wrangler v2
A step-by-step migration guide to transition from Wrangler v1 to Wrangler v2, including uninstallation of the old version, installation of the new version, and verification of project compatibility.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers 2. Update to Wrangler v2
A step-by-step migration guide to transition from Wrangler v1 to Wrangler v2, including uninstallation of the old version, installation of the new version, and verification of project compatibility.
When To Use
Use when upgrading a Cloudflare Workers project from Wrangler v1 to Wrangler v2 or troubleshooting installation and compatibility issues during the upgrade process.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-wrangler-migration-2-update-to-v2-workflow-guide.md | A guide detailing the steps to uninstall Wrangler v1, install Wrangler v2, and verify the installation for Cloudflare Workers projects. | Questions about a guide detailing the steps to uninstall Wrangler v1, install Wrangler v2, and verify the installation for Cloudflare... |
examples/workers-wrangler-migration-2-update-to-v2-cloudflare-workers-wrangler-v1.text | The npm command used to uninstall the global version of the legacy @cloudflare/wrangler package. | Exact payloads, commands, or snippets shown in The npm command used to uninstall the global version of the legacy @cloudflare/wrangler package. |
examples/workers-wrangler-migration-2-update-to-v2-cloudflare-workers-wrangler-v1-2.text | The shell command used to uninstall the legacy version of the Wrangler CLI via cargo. | Exact payloads, commands, or snippets shown in The shell command used to uninstall the legacy version of the Wrangler CLI via cargo. |
examples/workers-wrangler-migration-2-update-to-v2-cloudflare-workers-wrangler-v2.text | The npm command used to globally install the Wrangler v2 CLI. | Exact payloads, commands, or snippets shown in The npm command used to globally install the Wrangler v2 CLI. |
examples/workers-wrangler-migration-2-update-to-v2-cloudflare-workers-wrangler-v2-2.text | A command to check the currently installed version of the Wrangler CLI using npx. | Exact payloads, commands, or snippets shown in A command to check the currently installed version of the Wrangler CLI using npx. |
examples/workers-wrangler-migration-2-update-to-v2-cloudflare-workers-wrangler-v2-3.text | The npx wrangler dev command used to run a local development server for Cloudflare Workers. | Exact payloads, commands, or snippets shown in The npx wrangler dev command used to run a local development server for Cloudflare Workers. |
examples/workers-wrangler-migration-2-update-to-v2-cloudflare-workers-wrangler-v1-3.text | A text log showing deprecation warnings and ignored configuration fields when running wrangler v2 against a v1 wrangler.toml file. | Exact payloads, commands, or snippets shown in A text log showing deprecation warnings and ignored configuration fields when running wrangler v2 against a v1 wrangl... |
What This Skill Covers
- This document describes the steps to migrate a project from Wrangler v1 to Wrangler v2. Before updating your Wrangler version, review and complete Migrate w...
- Main sections:
Update Wrangler version,1\. Uninstall Wrangler v1,2\. Install Wrangler,3\. Verify your install,Test Wrangler v2 on your previous projects.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/wrangler/migration/v1-to-v2/update-v1-to-v2
