cf

Operate the Cloudflare cf CLI for remote APIs and local Miniflare resources.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/hschne/pi-stuff --skill cf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cf
Source: https://github.com/hschne/pi-stuff/tree/main/skills/cf
Command: npx skills add https://github.com/hschne/pi-stuff --skill cf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the risk of credential leaks, accidental remote resource mutations, and incorrect command usage when working with the Cloudflare cf CLI, a technical preview tool with varying command shapes across different products.

Core Features & Use Cases

  • Secure Remote Cloudflare Management: Safely execute cf commands for DNS, D1, KV, R2, Durable Objects, Workflows, and account/zone administration against live Cloudflare APIs.
  • Local Resource Testing: Use cf's Local Explorer mode to inspect and modify simulated Miniflare resources started by wrangler dev, cf dev, or the Cloudflare Vite plugin, with clear separation from live production data.
  • Built-in Safety Guardrails: Follow structured discovery workflows, validate active context before mutations, and use dry-run mode to prevent accidental changes to critical resources.
  • Use Case: A developer building a Cloudflare Worker can use this Skill to safely test D1 database schema changes locally via Local Explorer before deploying to production, avoiding unintended modifications to live user data.

Quick Start

Use the cf skill to list all KV namespaces associated with your Cloudflare account after confirming your active context with the cf context show command.

Frequently Asked Questions about cf

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

FAQPage Schema
How do I safely test Cloudflare D1 database schema changes without modifying live production data?

You can safely test D1 database schema changes by using the cf CLI's Local Explorer mode to inspect and modify simulated Miniflare resources, ensuring explicit separation from live Cloudflare production data.

What is the best way to prevent accidental remote mutations when running Cloudflare cf CLI commands?

Preventing accidental remote mutations with the Cloudflare cf CLI requires validating your active context before operations and using dry-run mode to validate any changes before they are applied to critical resources.

Can I manage Cloudflare KV namespaces and R2 storage locally with wrangler dev?

Yes, you can manage Cloudflare KV namespaces and R2 storage locally by using cf's Local Explorer mode to inspect and modify simulated Miniflare resources started by wrangler dev or the Cloudflare Vite plugin.

How do I discover the correct command syntax for different Cloudflare CLI products?

You can discover the correct command syntax for varying Cloudflare CLI products by following the structured discovery workflows provided by the cf skill, which ensures correct usage across different technical preview features.

Why do I need to verify my active context before running Cloudflare DNS administration commands?

Verifying your active context with commands like cf context show is required before running Cloudflare DNS administration commands to maintain credential protection and explicitly separate local testing from remote API interactions.

Does the cf CLI support local testing for Cloudflare Durable Objects and Workflows?

Yes, the cf CLI supports local testing for Cloudflare Durable Objects and Workflows by interacting with simulated Miniflare resources through the Local Explorer mode during your serverless development workflow.