cf

0.1.0 • Public • Published

cf

A unified command-line interface for Cloudflare.

This is a technical preview. To learn more, see the announcement blogpost.

Install

npm install -g cf

Requires Node.js 22 or newer.

Quick start

cf auth login        # Authenticate with Cloudflare
cf --help            # Browse all commands
cf <command> --help  # Per-command help
cf complete bash >> ~/.bashrc   # Install shell completions

Authentication

cf resolves credentials in this order:

  1. CLOUDFLARE_API_TOKEN environment variable
  2. cf OAuth token (via cf auth login; refreshed automatically)

Output

All output is JSON, written to stdout. Status messages (spinners, success markers) go to stderr. Pipe through jq for newline-delimited or filtered output.

Documentation

License

MIT