cloudflare-manager
Manage Cloudflare DNS, tunnels (cloudflared), and Zero Trust policies directly from your terminal to expose local services and secure domains.
Introduction
The Cloudflare Manager is a robust system administration skill designed for developers and DevOps engineers to manage Cloudflare infrastructure efficiently. It provides a standardized interface for interacting with the Cloudflare API and local tunnel services, enabling users to bridge local development environments with the public internet securely. This skill is ideal for teams needing to point domains to local instances, expose specific services via encrypted tunnels, or manage Zero Trust ingress rules without manually accessing the web dashboard.
-
Perform full lifecycle DNS record management including adding, listing, and deleting records via the Cloudflare API.
-
Automate Cloudflare Tunnel configuration updates by modifying
/etc/cloudflared/config.ymland managing service restarts. -
Support for dry-run previewing of configuration changes to prevent disruptive network interruptions.
-
Integration with local
.envfiles for secure credential storage ofCLOUDFLARE_API_TOKENandCLOUDFLARE_ZONE_ID. -
Standardized sudo management patterns for secure, least-privilege execution of system-level commands like service restarts and file writes.
-
Ensure
cloudflaredandpython3are pre-installed in your environment before usage. -
Utilize the provided
sudoers.exampletemplate to grant the minimum necessary privileges to the agent for modifying ingress rules. -
Always scope your Cloudflare API tokens to specific Zone IDs with minimal permissions to follow security best practices.
-
Typical inputs include target hostnames, local service URLs, and DNS record types (A, CNAME, etc.), while outputs include live status updates from the Cloudflare API and service state confirmation for local tunnels.
-
This skill relies on direct interaction with the Cloudflare infrastructure and is intended for technical environments where automated network management is required.
Repository Stats
- Stars
- 4,456
- Forks
- 1,215
- Open Issues
- 7
- Language
- Python
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- Apr 30, 2026, 12:19 PM