Skip to content
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 started    View the tutorials

Installing the Workers CLI

To install wrangler, the Workers CLI, ensure you have npm installed. Typically, you must also use a Node version manager like nvm. Then, run:

$ npm install -g @cloudflare/wrangler


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 playground    Learn more

These docs are built with the Cloudflare Docs Engine.