Hasty Briefsbeta

Bilingual

Building a CLI for All of Cloudflare

4 days ago
  • #Cloudflare
  • #API
  • #CLI
  • Cloudflare has a vast API with over 100 products and nearly 3,000 HTTP API operations.
  • Agents are increasingly the primary customers of Cloudflare APIs, used for building, deploying, configuring, and querying analytics.
  • Cloudflare aims to make every product available across all interfaces needed by agents, including CLI commands, Workers Bindings, SDKs, Terraform, and documentation.
  • Currently, many Cloudflare products lack CLI commands in Wrangler, prompting a rebuild to make it the CLI for all Cloudflare products with infrastructure-as-code configuration.
  • A technical preview of the next version of Wrangler, called cf, is available via npx cf or npm install -g cf, supporting a subset of Cloudflare products.
  • Cloudflare is developing a new system to generate commands, configuration, and binding APIs using a TypeScript schema instead of OpenAPI, enabling consistency across interfaces.
  • Rules and guardrails are enforced at the schema layer for CLI consistency, ensuring uniform command syntax and defaults for agents.
  • Local Explorer is released as a beta feature, allowing introspection of simulated local resources (KV, R2, D1, etc.) with the same APIs as remote, accessible via /cdn-cgi/explorer/api.
  • Feedback is sought on the CLI technical preview and desired features for Cloudflare's platform-wide CLI, via the Cloudflare Developers Discord.