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

cloudflare-manager

bởi 1999azzar

Web & Frontend Development
907Lượ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 DNS records, Tunnels (cloudflared), and Zero Trust policies.

Mô tả

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

Manages Cloudflare DNS records, tunnel ingress configuration, and Zero Trust policies through Python scripts and the Cloudflare API. Supports adding, listing, and deleting DNS records, and updating local cloudflared tunnel routing rules.

Combines DNS management and tunnel ingress configuration into a single scripted interface instead of switching between the Cloudflare dashboard and cloudflared CLI separately.

Khi nào nên dùng

  • Adding a DNS A record to point a subdomain to a new server IP
  • Exposing a local development service through a Cloudflare tunnel
  • Listing all DNS records for a zone
  • Updating tunnel ingress to route traffic to a different internal service
  • Previewing config changes before applying them with dry-run mode

Quy trình ví dụ

ĐẦU VÀO

User asks: expose my local app at localhost:3000 through Cloudflare tunnel at app.example.com

AGENT
  1. 1

    Verify CLOUDFLARE_API_TOKEN and CLOUDFLARE_ZONE_ID are present in the environment

  2. 2

    Run update-ingress with --dry-run to preview the config.yml change

  3. 3

    Apply the ingress update with sudo to write the config and restart the cloudflared service

  4. 4

    Add a DNS record pointing app.example.com to the tunnel endpoint

ĐẦU RA

Tunnel ingress updated and DNS record created; app.example.com routes to localhost:3000

Yêu cầu

  • cloudflared
  • CLOUDFLARE_API_TOKEN
  • CLOUDFLARE_ZONE_ID

Cài đặt

clawhub install 1999azzar/cloudflare-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