Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Migrate from Wrangler v3 to v4

Provides instructions for upgrading the Wrangler CLI from version 3 to version 4, including handling breaking changes in Node.js support, esbuild versions, command defaults, and deprecated configurations.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Migrate from Wrangler v3 to v4

Provides instructions for upgrading the Wrangler CLI from version 3 to version 4, including handling breaking changes in Node.js support, esbuild versions, command defaults, and deprecated configurations.

When To Use

Use when upgrading a Cloudflare Workers project from Wrangler v3 to v4 to ensure compatibility with new Node.js requirements and command-line defaults.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-wrangler-migration-migrate-from-v3-to-v4-workflow-guide.mdA guide detailing the major changes, command updates, and Node.js support policy transitions required to upgrade from Wrangler v3 to v4.Questions about a guide detailing the major changes, command updates, and Node.js support policy transitions required to upgrade from...
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran.textThe npm command required to install wrangler version 4 as a development dependency.Exact payloads, commands, or snippets shown in The npm command required to install wrangler version 4 as a development dependency.
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran-2.textThe shell command to upgrade the wrangler package to version 4 using yarn.Exact payloads, commands, or snippets shown in The shell command to upgrade the wrangler package to version 4 using yarn.
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran-3.textThe pnpm command used to install wrangler version 4 as a development dependency.Exact payloads, commands, or snippets shown in The pnpm command used to install wrangler version 4 as a development dependency.
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran-4.textThe shell command to upgrade the wrangler package to version 4 using the bun package manager.Exact payloads, commands, or snippets shown in The shell command to upgrade the wrangler package to version 4 using the bun package manager.
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran-5.textA command to check the current installed version of the Wrangler CLI using npx.Exact payloads, commands, or snippets shown in A command to check the current installed version of the Wrangler CLI using npx.
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran-6.textA command to check the current installed version of the Wrangler CLI using yarn.Exact payloads, commands, or snippets shown in A command to check the current installed version of the Wrangler CLI using yarn.
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran-7.textA command to check the current installed version of the Wrangler CLI using pnpm.Exact payloads, commands, or snippets shown in A command to check the current installed version of the Wrangler CLI using pnpm.
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran-8.textA command to check the current Node.js version required for the Wrangler v4 migration.Exact payloads, commands, or snippets shown in A command to check the current Node.js version required for the Wrangler v4 migration.
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran-9.textA shell command used to grep for wrangler kv and r2 references in configuration and script files to identify migration needs.Exact payloads, commands, or snippets shown in A shell command used to grep for wrangler kv and r2 references in configuration and script files to identify migratio...
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran-10.textA comparison of Wrangler v3 and v4 commands for retrieving a value from Cloudflare KV using the --remote flag.Exact payloads, commands, or snippets shown in A comparison of Wrangler v3 and v4 commands for retrieving a value from Cloudflare KV using the --remote flag.
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran-11.textShell commands to identify deprecated configuration keys in wrangler.toml and wrangler.json files during a v3 to v4 migration.Exact payloads, commands, or snippets shown in Shell commands to identify deprecated configuration keys in wrangler.toml and wrangler.json files during a v3 to v4 m...
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran-12.textA grep command used to identify legacy wrangler flags like --legacy-assets and --node-compat within project configuration files.Exact payloads, commands, or snippets shown in A grep command used to identify legacy wrangler flags like --legacy-assets and --node-compat within project configura...
examples/workers-wrangler-migration-migrate-from-v3-to-v4-cloudflare-workers-wran-13.textA shell command used to search for getBindingsProxy occurrences in JavaScript, TypeScript, and MJS files to identify migration requirements.Exact payloads, commands, or snippets shown in A shell command used to search for getBindingsProxy occurrences in JavaScript, TypeScript, and MJS files to identify...

What This Skill Covers

  • Wrangler v4 is a major release focused on updates to underlying systems and dependencies, along with improvements to keep Wrangler commands consistent and cl...
  • Main sections: Upgrade to Wrangler v4, Summary of changes, Detailed Changes, Updated Node.js support policy, Upgraded esbuild version.

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/update-v3-to-v4/index.md