Skip to content
Workers
Visit Workers on GitHub
Set theme to dark (⇧+D)

Cloudflare Workers documentation

Cloudflare Workers provides a serverless execution environment that allows you to create entirely new applications or augment existing ones without configuring or maintaining infrastructure.

Get startedView the tutorials


Installing the Workers CLI

To install wrangler, ensure you have npm installed, preferably using a Node version manager like Volta or nvm to avoid permission issues, then run:

$ npm install -g @cloudflare/wrangler

or install with yarn:

$ yarn global add @cloudflare/wrangler

Read more about installing wrangler.


Playground

View this Hello World example in the Workers playground:

addEventListener("fetch", event => {  event.respondWith(handleRequest(event.request))})
async function handleRequest(request) {  return new Response("Hello world")}

Launch playgroundLearn more



Community

Explore third-party packages that work on Workers, submitted by our users!

Connect with the Workers community on Discord to ask questions, show off what you’re building, and discuss the platform with other developers.

Follow @CloudflareDev on Twitter to learn about product announcements, new tutorials, and what's new in Cloudflare Workers.


These docs are built with the Cloudflare Docs Engine.