Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-wrangler-migration-2-update-to-v2-workflow-guide.mdA 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.textThe 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.textThe 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.textThe 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.textA 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.textThe 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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