devops10 min read

Introducing cf: The Agentic CLI for the Entire Cloudflare API

7 similar posts
  • Cloudflare cf
  • Wrangler
  • Forge
  • Vite
  • TypeScript
  • OpenAPI

AI Summary

Cloudflare has introduced 'cf', a new agent-first command line interface designed to expose their entire API of over 3,000 operations rather than just the subset covered by Wrangler. Built using a new unified API generation process called Forge based on OpenAPI schemas, cf defaults to JSON output, introduces TypeScript-based configuration via cloudflare.config.ts, and integrates Vite for local development.

Key Takeaways

  • Forge generates CLI commands directly from OpenAPI schemas, expanding coverage from Wrangler's ~280 operations to over 3,000 operations.
  • JSON is the default output format to reduce token overhead and context window usage for autonomous agents.
  • Configuration relies on TypeScript via cloudflare.config.ts to bring type safety and LSP support for both humans and agents.

Why it matters

As software development shifts toward agentic workflows, traditional CLIs designed solely for human readability can become bottlenecks. By engineering a CLI specifically for LLM agents—featuring natural language command discovery, type-safe configurations, and comprehensive API coverage—Cloudflare provides a blueprint for how developer tools must evolve to support autonomous and AI-assisted engineering.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.