Prompt Buddy logoPrompt Buddy

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 development and deployment.

Import to Prompt Buddy

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 development and deployment.

When To Use

Use when you need to initialize a new Cloudflare Worker project from scratch or from an existing Git repository using the C3 command-line tool.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-get-started-index-cli-workflow-guide.mdA guide for setting up and deploying a first Cloudflare Worker using the Wrangler CLI.Questions about a guide for setting up and deploying a first Cloudflare Worker using the Wrangler CLI.
examples/workers-get-started-index-cli-cloudflare-workers-cli-npm-create-command.textA command line instruction demonstrating how to initialize a new Cloudflare Worker project using the npm create cloudflare command.Exact payloads, commands, or snippets shown in A command line instruction demonstrating how to initialize a new Cloudflare Worker project using the npm create cloud...
examples/workers-get-started-index-cli-cloudflare-workers-cli-create-worker-comma.textA command line instruction demonstrating how to use yarn to create a new Cloudflare Worker project.Exact payloads, commands, or snippets shown in A command line instruction demonstrating how to use yarn to create a new Cloudflare Worker project.
examples/workers-get-started-index-cli-cloudflare-workers-cli-create-project-comm.textA command line example demonstrating how to use the cloudflare create command to initialize a new worker project.Exact payloads, commands, or snippets shown in A command line example demonstrating how to use the cloudflare create command to initialize a new worker project.
examples/workers-get-started-index-cli-cloudflare-workers-cli-get-started-shell-c.textA sequence of shell commands for navigating to a worker directory and initiating the setup process.Exact payloads, commands, or snippets shown in A sequence of shell commands for navigating to a worker directory and initiating the setup process.
examples/workers-get-started-index-cli-cloudflare-workers-cli-npm-create-command-2.textAn example of the npm create cloudflare command used to initialize a new project with a template.Exact payloads, commands, or snippets shown in An example of the npm create cloudflare command used to initialize a new project with a template.
examples/workers-get-started-index-cli-cloudflare-workers-cli-wrangler-dev-comman.textA text example demonstrating the use of the npx wrangler dev command to start a local development server for Cloudflare Workers.Exact payloads, commands, or snippets shown in A text example demonstrating the use of the npx wrangler dev command to start a local development server for Cloudfla...
examples/workers-get-started-index-cli-cloudflare-workers-cli-hello-world-worker-.textA 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-index-cli-cloudflare-workers-cli-hello-world-worker--2.textA 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-index-cli-cloudflare-workers-cli-deploy-command.textAn example of the npx wrangler deploy command used to deploy a Cloudflare Worker.Exact payloads, commands, or snippets shown in An example of the npx wrangler deploy command used to deploy a Cloudflare Worker.

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

  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/get-started/guide/index.md