cloudflare · Cloudflare Workers Docs
Workers Development & testing
Explains how to set up and run Cloudflare Workers locally using Miniflare via Wrangler or the Vite plugin, including how to manage local vs. remote resource bindings.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Development & testing
Explains how to set up and run Cloudflare Workers locally using Miniflare via Wrangler or the Vite plugin, including how to manage local vs. remote resource bindings.
When To Use
Use when you need to set up a local development server to run, test, and debug Worker code using Wrangler or Vite before deploying to production.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-development-testing-38-workflow-guide.md | A guide covering core concepts, local development with Miniflare, and the differences between Worker execution and bindings. | Questions about a guide covering core concepts, local development with Miniflare, and the differences between Worker execution and bi... |
examples/workers-development-testing-38-cloudflare-workers-wrangler-dev-command-u.text | A text representation of the npx wrangler dev command used for local development and testing of Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text representation of the npx wrangler dev command used for local development and testing of Cloudflare Workers. |
examples/workers-development-testing-38-cloudflare-workers-wrangler-dev-command-u-2.text | A text representation of the wrangler dev command used for local development and testing of Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text representation of the wrangler dev command used for local development and testing of Cloudflare Workers. |
examples/workers-development-testing-38-cloudflare-workers-wrangler-dev-command-u-3.text | A text representation of the pnpm wrangler dev command used for local development and testing of Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text representation of the pnpm wrangler dev command used for local development and testing of Cloudflare Workers. |
examples/workers-development-testing-38-cloudflare-workers-vite-dev-command.text | A text snippet demonstrating the npx vite dev command used for local development of Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text snippet demonstrating the npx vite dev command used for local development of Cloudflare Workers. |
examples/workers-development-testing-38-cloudflare-workers-vite-dev-command-2.text | A text snippet demonstrating the yarn vite dev command used for local development of Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text snippet demonstrating the yarn vite dev command used for local development of Cloudflare Workers. |
examples/workers-development-testing-38-cloudflare-workers-vite-dev-command-3.text | A text snippet demonstrating the pnpm vite dev command used for local development of Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text snippet demonstrating the pnpm vite dev command used for local development of Cloudflare Workers. |
examples/workers-development-testing-38-cloudflare-workers-wrangler-toml-configur.text | A sample wrangler.toml configuration file demonstrating worker name, compatibility date, and R2 bucket bindings. | Exact payloads, commands, or snippets shown in A sample wrangler.toml configuration file demonstrating worker name, compatibility date, and R2 bucket bindings. |
examples/workers-development-testing-38-cloudflare-workers-wrangler-toml-configur-2.text | A sample wrangler.toml configuration file demonstrating compatibility dates and R2 bucket bindings for a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A sample wrangler.toml configuration file demonstrating compatibility dates and R2 bucket bindings for a Cloudflare W... |
examples/workers-development-testing-38-cloudflare-workers-wrangler-toml-configur-3.text | A sample wrangler.toml configuration file demonstrating environment definitions and R2 bucket bindings for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A sample wrangler.toml configuration file demonstrating environment definitions and R2 bucket bindings for Cloudflare... |
examples/workers-development-testing-38-cloudflare-workers-wrangler-toml-configur-4.text | A sample wrangler.toml configuration file demonstrating environment settings, compatibility dates, and R2 bucket bindings. | Exact payloads, commands, or snippets shown in A sample wrangler.toml configuration file demonstrating environment settings, compatibility dates, and R2 bucket bind... |
examples/workers-development-testing-38-cloudflare-workers-development-testing-co.text | A configuration example demonstrating how to set up browser bindings and remote development settings for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A configuration example demonstrating how to set up browser bindings and remote development settings for Cloudflare W... |
examples/workers-development-testing-38-cloudflare-workers-browser-binding-config.text | A text configuration snippet demonstrating how to define a browser binding with remote enabled in a Workers environment. | Exact payloads, commands, or snippets shown in A text configuration snippet demonstrating how to define a browser binding with remote enabled in a Workers environment. |
examples/workers-development-testing-38-cloudflare-workers-development-testing-co-2.text | A configuration example demonstrating how to set up AI bindings and remote development settings for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A configuration example demonstrating how to set up AI bindings and remote development settings for Cloudflare Workers. |
examples/workers-development-testing-38-cloudflare-workers-development-testing-co-3.text | A text configuration example demonstrating wrangler.toml settings for remote AI bindings in a Cloudflare Workers environment. | Exact payloads, commands, or snippets shown in A text configuration example demonstrating wrangler.toml settings for remote AI bindings in a Cloudflare Workers envi... |
examples/workers-development-testing-38-cloudflare-workers-development-testing-wr.text | A text representation of a wrangler.toml configuration file demonstrating bindings for Vectorize and other worker settings. | Exact payloads, commands, or snippets shown in A text representation of a wrangler.toml configuration file demonstrating bindings for Vectorize and other worker set... |
examples/workers-development-testing-38-cloudflare-workers-development-testing-bi.text | A text configuration example demonstrating how to define Vectorize bindings within a Workers environment. | Exact payloads, commands, or snippets shown in A text configuration example demonstrating how to define Vectorize bindings within a Workers environment. |
examples/workers-development-testing-38-cloudflare-workers-development-testing-co-4.text | A text configuration example demonstrating certificate binding settings for Cloudflare Workers development and testing. | Exact payloads, commands, or snippets shown in A text configuration example demonstrating certificate binding settings for Cloudflare Workers development and testing. |
examples/workers-development-testing-38-cloudflare-workers-mtls-certificate-bindi.text | A text configuration example demonstrating how to bind an mTLS certificate to a Cloudflare Worker using the mtls_certificates binding. | Exact payloads, commands, or snippets shown in A text configuration example demonstrating how to bind an mTLS certificate to a Cloudflare Worker using the mtlscerti... |
examples/workers-development-testing-38-cloudflare-workers-development-testing-gu.text | A text-based overview of development and testing workflows for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text-based overview of development and testing workflows for Cloudflare Workers. |
examples/workers-development-testing-38-cloudflare-workers-development-testing-gu-2.text | A text-based overview of development and testing workflows for Cloudflare Workers, including environment bindings and remote execution concepts. | Exact payloads, commands, or snippets shown in A text-based overview of development and testing workflows for Cloudflare Workers, including environment bindings and... |
examples/workers-development-testing-38-cloudflare-workers-development-testing-co-5.text | A configuration example demonstrating wrangler settings for workers development and testing including dispatch namespaces. | Exact payloads, commands, or snippets shown in A configuration example demonstrating wrangler settings for workers development and testing including dispatch namesp... |
examples/workers-development-testing-38-cloudflare-workers-dispatch-namespaces-co.text | A configuration example demonstrating how to define dispatch namespace bindings in a Workers environment. | Exact payloads, commands, or snippets shown in A configuration example demonstrating how to define dispatch namespace bindings in a Workers environment. |
examples/workers-development-testing-38-cloudflare-workers-miniflare-setup.text | A JavaScript code snippet demonstrating how to initialize and configure a Miniflare development session with KV namespace bindings. | Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to initialize and configure a Miniflare development session with KV names... |
examples/workers-development-testing-38-cloudflare-workers-miniflare-setup-2.text | A TypeScript code example demonstrating how to initialize and configure a Miniflare instance for local Workers development and testing. | Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize and configure a Miniflare instance for local Workers develo... |
examples/workers-development-testing-38-cloudflare-workers-wrangler-dev-remote-co.text | A text snippet demonstrating the command to run a Cloudflare Workers development server in remote mode using Wrangler. | Exact payloads, commands, or snippets shown in A text snippet demonstrating the command to run a Cloudflare Workers development server in remote mode using Wrangler. |
examples/workers-development-testing-38-cloudflare-workers-wrangler-dev-remote-co-2.text | A text snippet demonstrating the command to run a Cloudflare Workers development server in remote mode using Wrangler. | Exact payloads, commands, or snippets shown in A text snippet demonstrating the command to run a Cloudflare Workers development server in remote mode using Wrangler. |
examples/workers-development-testing-38-cloudflare-workers-wrangler-dev-remote-co-3.text | A text snippet demonstrating the command to run the Wrangler CLI in remote development mode for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text snippet demonstrating the command to run the Wrangler CLI in remote development mode for Cloudflare Workers. |
What This Skill Covers
- You can build, run, and test your Worker code on your own local machine before deploying it to Cloudflare's network. This is made possible through Miniflare,...
- Main sections:
Core concepts,Worker execution vs Bindings,Local development,Defaults,Bindings during local development.
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/development-testing
