cf
v0.9.1
Published
The Cloudflare CLI
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 auth create work # Create a named auth profile
cf auth activate work # Use it in the current directory
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- The OAuth profile selected by
--profile, the nearest directory binding, or the default profile (refreshed automatically)
Use cf auth create, delete, activate, deactivate, and list to manage
named profiles. cf auth login and cf auth logout manage the default profile.
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
