Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

cf-manager

bởi rexlunae

DevOps & Cloud
683Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Manage Cloudflare via API — DNS zones and records, page rules, SSL/TLS settings, caching, firewall rules, Workers.

Mô tả

Kỹ năng này làm gì

Manages Cloudflare infrastructure via API using a Python CLI script. Covers DNS zones and records, SSL/TLS configuration, page rules, firewall rules, Workers deployment, and traffic analytics. Free tier support includes CDN, DDoS protection, and SSL certificates.

Lets you manage all Cloudflare settings from the command line, making it practical to script, automate, or batch changes without clicking through the dashboard.

Khi nào nên dùng

  • Adding DNS records when pointing a new domain to a server
  • Blocking malicious IPs or entire countries via firewall rules
  • Purging CDN cache after deploying site updates
  • Migrating DNS from another provider by importing and verifying records
  • Deploying or updating serverless Worker scripts without the dashboard

Quy trình ví dụ

ĐẦU VÀO

User asks: Add example.com to Cloudflare with my server at 1.2.3.4 and enable HTTPS

AGENT
  1. 1

    Add the zone for example.com to Cloudflare

  2. 2

    Retrieve the assigned nameservers from the zone details

  3. 3

    Add an A record pointing @ to 1.2.3.4 with proxy enabled

  4. 4

    Add a CNAME for www pointing to example.com with proxy enabled

  5. 5

    Set SSL mode to strict

ĐẦU RA

Zone created, DNS records configured with orange-cloud proxy, SSL set to strict mode — nameservers ready to update at registrar

Yêu cầu

  • Cloudflare account
  • Cloudflare API token with Zone:Read, Zone:Edit, DNS:Read, DNS:Edit permissions (from dash.cloudflare.com/profile/api-tokens)

Cài đặt

clawhub install rexlunae/cf-manager

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết