cloudflare · Cloudflare Workers Docs
Workers Get started
A step-by-step guide to setting up a standalone Cloudflare Worker from scratch using the Cloudflare Vite plugin, including package configuration, dependency installation, Vite and Wrangler configuration, and deploymen...
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Get started
A step-by-step guide to setting up a standalone Cloudflare Worker from scratch using the Cloudflare Vite plugin, including package configuration, dependency installation, Vite and Wrangler configuration, and deploymen...
When To Use
Use when you need to manually configure a new Cloudflare Worker project using Vite and the Cloudflare Vite plugin instead of using a pre-built framework template.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-vite-plugin-get-started-workflow-guide.md | A step-by-step guide for setting up a standalone Cloudflare Worker from scratch using the Vite plugin, including package.json and configuration file setup. | Questions about a step-by-step guide for setting up a standalone Cloudflare Worker from scratch using the Vite plugin, including pack... |
examples/workers-vite-plugin-get-started-cloudflare-workers-vite-plugin-package-j.text | A package.json configuration file demonstrating the scripts and setup required to use the Cloudflare Workers Vite plugin. | Exact payloads, commands, or snippets shown in A package.json configuration file demonstrating the scripts and setup required to use the Cloudflare Workers Vite plu... |
examples/workers-vite-plugin-get-started-cloudflare-workers-vite-plugin-installat.text | The npm installation commands required to set up the Cloudflare Workers Vite plugin with vite and wrangler. | Exact payloads, commands, or snippets shown in The npm installation commands required to set up the Cloudflare Workers Vite plugin with vite and wrangler. |
examples/workers-vite-plugin-get-started-cloudflare-workers-vite-plugin-installat-2.text | The shell commands required to install vite, the cloudflare vite plugin, and wrangler using yarn. | Exact payloads, commands, or snippets shown in The shell commands required to install vite, the cloudflare vite plugin, and wrangler using yarn. |
examples/workers-vite-plugin-get-started-cloudflare-workers-vite-plugin-installat-3.text | The shell commands required to install vite, the Cloudflare Vite plugin, and wrangler using pnpm. | Exact payloads, commands, or snippets shown in The shell commands required to install vite, the Cloudflare Vite plugin, and wrangler using pnpm. |
examples/workers-vite-plugin-get-started-cloudflare-workers-vite-plugin-installat-4.text | The shell commands required to install the Cloudflare Workers Vite plugin and its dependencies using bun. | Exact payloads, commands, or snippets shown in The shell commands required to install the Cloudflare Workers Vite plugin and its dependencies using bun. |
examples/workers-vite-plugin-get-started-cloudflare-workers-vite-plugin-config.text | A vite configuration file demonstrating the integration of the cloudflare plugin for workers development. | Exact payloads, commands, or snippets shown in A vite configuration file demonstrating the integration of the cloudflare plugin for workers development. |
examples/workers-vite-plugin-get-started-cloudflare-workers-vite-plugin-wrangler-.text | A sample wrangler.json configuration file for initializing a Cloudflare Workers project using the Vite plugin. | Exact payloads, commands, or snippets shown in A sample wrangler.json configuration file for initializing a Cloudflare Workers project using the Vite plugin. |
examples/workers-vite-plugin-get-started-cloudflare-workers-vite-plugin-wrangler--2.text | A sample wrangler.toml configuration file for initializing a Cloudflare Workers project using the Vite plugin. | Exact payloads, commands, or snippets shown in A sample wrangler.toml configuration file for initializing a Cloudflare Workers project using the Vite plugin. |
examples/workers-vite-plugin-get-started-cloudflare-workers-vite-plugin-get-start.text | A basic configuration and entry point example for setting up a Cloudflare Workers project using the Vite plugin. | Exact payloads, commands, or snippets shown in A basic configuration and entry point example for setting up a Cloudflare Workers project using the Vite plugin. |
What This Skill Covers
- This guide demonstrates creating a standalone Worker from scratch. If you would instead like to create a new application from a ready-to-go template, refer t...
- Main sections:
Start with a basic package.json,Install the dependencies,Create your Vite config file and include the Cloudflare plugin,Create your Worker config file,Create your Worker entry file.
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/vite-plugin/get-started
