Skip to content
On this page

cloudflare workers

This page is deployed from: Cloudflare, Workers, Edge.

Install npm module and make it globally available

npm install -g wrangler

Auth in cloudflare

wrangler login

Create the wrangler.toml file

wrangler init <YOUR_WORKER>

Use template to deploy website (Optional)

npm init cloudflare my-app https://github.com/cloudflare/worker-sites-template

Workers Templates & Docs

Command for development purposes

wrangler dev

Config your wrangler.toml with the needed params according to your needs.

Publish your cloudflare worker

wrangler publish

Learn - Code - Ship.

Last updated on 3/31/2023