cf
v0.2.0
Published
The Cloudflare CLI
Downloads
8,530
Readme
cf
A unified command-line interface for Cloudflare.
This is a technical preview. To learn more, see the announcement blogpost.
Install
npm install -g cfRequires 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 completionsAuthentication
cf resolves credentials in this order:
CLOUDFLARE_API_TOKENenvironment variable- 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
