Get started · Cloudflare Workers docs

PHOTO EMBED

Thu May 19 2022 21:40:31 GMT+0000 (UTC)

Saved by @meshal #bash

npx wrangler init my-worker
# try it out

cd my-worker && npx wrangler dev
# and then publish it
npx wrangler publish
# visit https://my-worker.<your workers subdomain>.workers.dev
content_copyCOPY

https://developers.cloudflare.com/workers/wrangler/get-started/