cf command provides a comprehensive toolkit for deploying, managing, and querying your Cloudflare infrastructure using natural language and direct commands.
Overview
Clanker’s Cloudflare integration allows you to:- Deploy Workers, Pages, and other Cloudflare resources
- Create and manage KV namespaces, D1 databases, and R2 buckets
- Configure DNS records and Cloudflare Tunnels
- Ask natural language questions about your Cloudflare account
- List and delete existing resources
Available commands
cf ask
Ask natural language questions about your Cloudflare account
cf deploy
Deploy Workers, Pages, and other resources to Cloudflare
cf create
Create new Cloudflare resources like KV, D1, R2, and DNS records
cf delete
Delete Cloudflare resources
cf list
List zones, workers, and other Cloudflare resources
Authentication
All Cloudflare commands require authentication. You can provide credentials in three ways:Command-line flags
Command-line flags
Pass credentials directly to each command:
Environment variables
Environment variables
Set environment variables for automatic authentication:
Configuration file
Configuration file
Add credentials to your
~/.clanker.yaml config file:Common flags
These flags are available across all Cloudflare commands:Your Cloudflare account ID. Can also be set via
CLOUDFLARE_ACCOUNT_ID environment variable or in config file.Your Cloudflare API token. Can also be set via
CLOUDFLARE_API_TOKEN environment variable or in config file.Enable debug output to see detailed API interactions and troubleshooting information.
Getting started
Create a Cloudflare API token
Generate an API token from your Cloudflare dashboard with the necessary permissions for your use case.
Example workflows
Next steps
Natural language queries
Learn how to query your Cloudflare account using natural language
Deploy resources
Explore all deployment options for Workers, Pages, and more
Cloudflare provider guide
Deep dive into Cloudflare integration concepts
Configuration
Configure Clanker for optimal Cloudflare workflows