cloudflare · Cloudflare Workers Docs
Workers CLI
A step-by-step guide to initializing a Cloudflare Worker project using the C3 CLI, configuring project files, and preparing for deployment with Wrangler.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers CLI
A step-by-step guide to initializing a Cloudflare Worker project using the C3 CLI, configuring project files, and preparing for deployment with Wrangler.
When To Use
Use when you need to initialize a new Cloudflare Worker project from scratch or from an existing Git repository using the command line.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-get-started-cli-workflow-guide.md | A guide for setting up and deploying a Cloudflare Worker using the Wrangler CLI. | Questions about a guide for setting up and deploying a Cloudflare Worker using the Wrangler CLI. |
examples/workers-get-started-cli-cloudflare-workers-cli-npm-create-command.text | The npm command used to initialize a new Cloudflare Workers project via the create cloudflare utility. | Exact payloads, commands, or snippets shown in The npm command used to initialize a new Cloudflare Workers project via the create cloudflare utility. |
examples/workers-get-started-cli-cloudflare-workers-cli-create-project-command.text | A command line instruction demonstrating how to use yarn to create a new Cloudflare Workers project. | Exact payloads, commands, or snippets shown in A command line instruction demonstrating how to use yarn to create a new Cloudflare Workers project. |
examples/workers-get-started-cli-cloudflare-workers-cli-create-project-command-2.text | A command line instruction demonstrating how to initialize a new Cloudflare Workers project using the pnpm create cloudflare command. | Exact payloads, commands, or snippets shown in A command line instruction demonstrating how to initialize a new Cloudflare Workers project using the pnpm create clo... |
examples/workers-get-started-cli-cloudflare-workers-cli-get-started-guide-command.text | A sequence of terminal commands for navigating directories and initializing a new Cloudflare Workers project. | Exact payloads, commands, or snippets shown in A sequence of terminal commands for navigating directories and initializing a new Cloudflare Workers project. |
examples/workers-get-started-cli-cloudflare-workers-cli-npm-create-command-2.text | A text example demonstrating the npm create cloudflare command with the template flag for initializing a new project. | Exact payloads, commands, or snippets shown in A text example demonstrating the npm create cloudflare command with the template flag for initializing a new project. |
examples/workers-get-started-cli-cloudflare-workers-cli-wrangler-dev-command.text | A text representation of the npx wrangler dev command used to start a local development server for Cloudflare Workers. | Exact payloads, commands, or snippets shown in A text representation of the npx wrangler dev command used to start a local development server for Cloudflare Workers. |
examples/workers-get-started-cli-cloudflare-workers-cli-hello-world-script.text | A basic JavaScript worker script that returns a Hello World response to an incoming fetch request. | Exact payloads, commands, or snippets shown in A basic JavaScript worker script that returns a Hello World response to an incoming fetch request. |
examples/workers-get-started-cli-cloudflare-workers-cli-hello-world-worker-script.text | A basic JavaScript worker script that returns a 'Hello Worker!' response to an incoming fetch request. | Exact payloads, commands, or snippets shown in A basic JavaScript worker script that returns a 'Hello Worker!' response to an incoming fetch request. |
examples/workers-get-started-cli-cloudflare-workers-cli-deploy-command.text | An example of the npx wrangler deploy command used to deploy a Cloudflare Worker via the CLI. | Exact payloads, commands, or snippets shown in An example of the npx wrangler deploy command used to deploy a Cloudflare Worker via the CLI. |
What This Skill Covers
- Set up and deploy your first Worker with Wrangler, the Cloudflare Developer Platform CLI.
- Main sections:
Prerequisites,1\. Create a new Worker project,2\. Develop with Wrangler CLI,3\. Write code,4\. Deploy your project.
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/get-started/guide
