← 返回
数据分析 Key 中文

Cloudflare

Manage Cloudflare domains, DNS records, SSL settings, zone configuration, firewall rules, tunnels, and analytics via the Cloudflare API. Use when the user as...
通过 Cloudflare API 管理域名、DNS 记录、SSL 设置、区域配置、防火墙规则、隧道和分析。当用户...时使用。
insipidpoint
数据分析 clawhub v1.5.0 1 版本 100000 Key: 需要
★ 1
Stars
📥 2,551
下载
💾 23
安装
1
版本
#latest

概述

Cloudflare

Manage Cloudflare zones, DNS, SSL, tunnels, and settings via the bundled scripts/cf.sh bash script.

Prerequisites

  • curl, jq, and openssl must be available on the system
  • Set CLOUDFLARE_API_TOKEN environment variable
  • Optionally set CLOUDFLARE_ACCOUNT_ID for tunnel operations

CLI: scripts/cf.sh

All operations go through the bundled scripts/cf.sh bash script (included in this skill). No external downloads needed.

# Run from skill directory
./scripts/cf.sh <command> [args...]
# Or reference by absolute path
/path/to/skills/cloudflare/scripts/cf.sh <command> [args...]

Commands

CommandArgsDescription
----------------------------
helpShow all commands
verifyVerify API token is valid
zones[domain]List zones (optionally filter by domain name)
zone-getGet zone details
zone-idGet zone ID from domain name
dns-list [type] [name]List DNS records
dns-create [proxied] [ttl]Create DNS record
dns-update [proxied] [ttl]Update DNS record
dns-delete Delete DNS record
dns-exportExport all records as JSON
dns-import Import records from JSON
settings-listList all zone settings
setting-get Get specific setting
setting-set Update a setting
ssl-getGet current SSL mode
ssl-set Set SSL mode (off/flexible/full/strict)
cache-purge [url1 url2 ...]Purge specific URLs or everything
pagerules-listList page rules
firewall-listList firewall rules
tunnels-listList Cloudflare Tunnels (needs ACCOUNT_ID)
tunnel-getGet tunnel details
tunnel-createCreate a tunnel (needs ACCOUNT_ID)
tunnel-deleteDelete a tunnel (needs ACCOUNT_ID)
analytics [since_minutes]Zone analytics (default: last 24h)

Proxied flag

  • true — orange cloud, traffic through Cloudflare (CDN, WAF, DDoS)
  • false — grey cloud, DNS-only (use for MX, non-HTTP services)

TTL

  • 1 = automatic (Cloudflare-managed)
  • Set explicit seconds for DNS-only records (e.g., 3600)

Typical workflows

Point domain to server

# Find zone ID
cf zones example.com
# Create A record (proxied)
cf dns-create <zone_id> A example.com 1.2.3.4 true
# Create www CNAME
cf dns-create <zone_id> CNAME www.example.com example.com true

Set up email (MX + SPF)

cf dns-create <zone_id> MX example.com "mx.provider.com" false 1
cf dns-create <zone_id> TXT example.com "v=spf1 include:provider.com ~all" false

Enable strict SSL

cf ssl-set <zone_id> strict

Safety rules

Always confirm with the user before:

  • Deleting DNS records (dns-delete)
  • Changing SSL mode
  • Modifying firewall rules
  • Any destructive operation

Safe to do freely:

  • Listing/reading zones, records, settings, analytics
  • Verifying token

Reference

For DNS record types, SSL modes, and API details: see references/api-guide.md

版本历史

共 1 个版本

  • v1.5.0 当前
    2026-03-28 21:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Checkmate

insipidpoint
强制任务完成:将目标转化为通过/失败标准,运行工作者,评判输出,反馈缺失项,循环直至每项标准满足。
★ 0 📥 1,418
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,129
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,485