Cloudflare has introduced cf, a new command-line interface built specifically for AI agents to access the full Cloudflare API. Unlike its predecessor Wrangler, which covers only about 280 operations, cf provides access to over 3,000 operations across the entire Cloudflare API surface, addressing the growing agent usage that rose from single-digit percentages to nearly half of all Wrangler use.
The cf CLI is designed with agents in mind: it defaults to JSON output (pretty-printed for human readers and condensed for agents) to eliminate the need for post-processing with tools like jq, and it uses a TypeScript-based configuration file (cloudflare.config.ts) that offers type safety and editor autocomplete via language server protocol plugins. Additionally, cf includes a natural language search feature (cf cli search) that lets agents find appropriate commands by describing their goals in plain language, with results drawn from API descriptions and parameters.
cf is available as an open beta installable via npm (npm i -g cf) and also through a Nix flake that pins dependencies and provides prebuilt binaries for Linux and macOS. For existing Wrangler users, cf migrate converts Workers to the new configuration format while continuing to delegate to Wrangler for projects that rely on esbuild, Rust, or Python toolchains; new projects can be bootstrapped with cf init/deploy, which installs the Cloudflare Vite Plugin and creates a configuration file. Cloudflare plans to release a final major version of Wrangler that directs users to cf after the beta, with 18 months of maintenance support for Wrangler to allow time for migration.
The article mentions that cf is available through a Nix flake that pins dependencies and provides prebuilt binaries for Linux and macOS, making this image relevant to that installation method.