Visit project on GitHub
Set theme to dark

Denoflare Command-line Interface

Denoflare CLI is a standard Deno program, so it benefits from the permission model and installation flexibility of all Deno programs.


Denoflare requires Deno, which is easy to install

Install denoflare via standard deno install

deno install --unstable --allow-read --allow-net --allow-env --name denoflare --force

Alternatively, you can also "install" by defining a shell function in your shell config to a deno run command. This allows you to create multiple aliases with different permissions.

# in ~/.bash_profile
function denoflare {
    deno run --unstable --allow-read --allow-net --allow-env "[email protected]"

Or, run without an install step at all, perhaps inside a CI build. Simply replace denoflare in our docs with the long-form deno run command.

e.g. instead of denoflare serve x

deno run --unstable --allow-read --allow-net --allow-env serve x

We'll start posting standard releases (via deno compile ) when denoflare nears a stable feature set.

Once denoflare is defined, the cli includes docs on each command.


$ denoflare --help
denoflare 0.4.5

    denoflare [command] [FLAGS] [OPTIONS] [args]

  • serve - Run a worker script on a local web server
  • push - Upload a worker script to Cloudflare Workers
  • tail - View a stream of logs from a published worker
  • site - Develop and deploy a static docs site to Cloudflare Pages
  • analytics - Dump stats via the Cloudflare GraphQL Analytics API
  • cfapi - Call the Cloudflare REST API
  • version - Dump cli version
For command-specific help: denoflare [command] --help

Next Steps?