Building a CLI for all of Cloudflare

https://blog.cloudflare.com/cf-cli-local-explorer/

Article

  • New unified cf CLI covers all Cloudflare products and ~3000 API operations
  • TypeScript schema system auto-generates consistent CLI, SDKs, and Terraform interfaces
  • Local Explorer lets devs inspect simulated KV, R2, D1, Durable Objects locally
  • Designed for AI agents with consistent commands and good context engineering
  • Available now as technical preview via npx cf

Discussion

  • Users want a cf permissions check command to show required API token scopes
  • Need resource groups and per-group permissions to prevent agents breaking prod
  • CLI-first design trend driven by AI agents needing machine-readable interfaces
  • Agents use CLIs well but fail at diagnosing errors; clear fix messages matter most
  • Praise for OpenAPI schema-driven approach to CLI generation

Discuss on HN


Type Link
Added Apr 13, 2026
Modified Apr 14, 2026