wrangler

Cloudflare Workers command line tool.

TLDR

Initialize a project with a skeleton configuration

$ wrangler init [project_name]
copy


Authenticate with Cloudflare
$ wrangler login
copy


Start a local development server
$ wrangler dev --host [hostname]
copy


Publish the worker script
$ wrangler publish
copy


Aggregate logs from the production worker
$ wrangler tail
copy

Copied to clipboard