cloudflare-cli

Manage Cloudflare resources through the technical-preview cf CLI with live command discovery.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/roman-pinchuk/agent-skills --skill cloudflare-cli-roman-pinchuk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-cli
Source: https://github.com/roman-pinchuk/agent-skills/tree/main/skills/cloudflare-cli
Command: npx skills add https://github.com/roman-pinchuk/agent-skills --skill cloudflare-cli-roman-pinchuk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Cloudflare's unified cf CLI is a technical preview whose command surface changes quickly, so memorized commands and flags frequently break. This Skill teaches the agent to discover the current command inventory, schemas, and authentication context directly from the installed CLI before executing any operation. ## Core Features & Use Cases - Live Command Discovery: Uses cf agent-context, --help, and cf schema to retrieve exact syntax, arguments, and request fields from the installed CLI instead of relying on stale documentation. - Safe Write Operations: Enforces dry runs, explicit confirmation for destructive or billing-related changes, and read-only verification after every write. - Authentication and Context Handling: Manages OAuth profiles, CLOUDFLARE_API_TOKEN resolution, and account or zone context without ever exposing credential values. - Use Case: A user asks to create a DNS record. The agent runs cf agent-context dns, checks cf dns records create --help and its schema, confirms the zone context, dry-runs the change, executes it, and verifies with a read-only list command. ## Quick Start Ask the agent to use the cf CLI to list the DNS records for your zone and let it discover the exact commands from the installed CLI.

Frequently Asked Questions about cloudflare-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Cloudflare resources with the cf CLI?

Discover the current command surface with cf agent-context --list, then run cf agent-context <product> and cf <command-path> --help for exact syntax. Because cf is a technical preview, always confirm flags against the installed CLI rather than memorized commands.

What is the difference between the cf CLI and Wrangler?

The cf CLI is Cloudflare's unified technical-preview tool for account-wide API resource management, while Wrangler handles established Workers development and configuration workflows. Their command names and behavior differ, so commands should not be translated between them.

How does cf CLI authentication work with API tokens?

Credential resolution prefers the CLOUDFLARE_API_TOKEN environment variable, then the OAuth profile selected by --profile or the default profile. Verify authentication with cf auth whoami and never print or inspect token values when troubleshooting.

Can the cf CLI target local development resources?

Yes, supported commands accept --local to route to the Local Explorer API exposed by a running wrangler dev or cf dev Miniflare session. Supply --local-endpoint when required and confirm support in the command's current help output.

Why does a cf CLI command fail with unknown option errors?

The cf CLI is a technical preview and its flags change between versions, so previously valid options may be removed. Refresh syntax with cf --help, cf agent-context --list, and the exact command's --help output before retrying.