Skip to content
Kitbay
Submit

cf-cli

Apache-2.0Updated on Nov 10, 20263,337GitHub stars

This skill teaches a coding agent to use cf, Cloudflare's newer command-line tool that covers the Cloudflare API as well as Workers projects, and which Cloudflare labels beta.

What the skill teaches

This skill teaches a coding agent to use cf, Cloudflare's newer command-line tool that covers the Cloudflare API as well as Workers projects, and which Cloudflare labels beta. It covers installing the package, signing in or using an API token in CI, finding the right command with cf cli search and cf schema, reading JSON output, and previewing requests with dry runs before sending them. It also says which of the two CLIs, cf or Wrangler, a project should use depending on the configuration file it has, and lists the Wrangler commands to fall back on where cf has no equivalent yet.

Capabilities

  • Install cf and sign in, or use an API token in CI
  • Search for the cf command that matches a task
  • Preview API requests with --dry-run before running them
  • Decide whether a project should use cf or Wrangler