Flarectl - Control Cloudflare Services | Online Free DevTools by Hexmos
Control Cloudflare services with Flarectl, the official CLI tool. Automate DNS record management, firewall rule creation, and IP range listing. Free online tool, no registration required.
flarectl
Official CLI for Cloudflare. More information: https://github.com/cloudflare/cloudflare-go/blob/master/cmd/flarectl/README.md.
- Block a specific IP:
flarectl firewall rules create --zone="{{example.com}}" --value="{{8.8.8.8}}" --mode="{{block}}" --notes="{{Block bad actor}}"
- Add a DNS record:
flarectl dns create --zone="{{example.com}}" --name="{{app}}" --type="{{CNAME}}" --content="{{myapp.herokuapp.com}}" --proxy
- List all Cloudflare IPv4/IPv6 ranges:
flarectl ips --ip-type {{ipv4|ipv6|all}}
- Create many new Cloudflare zones automatically with names from
domains.txt:
for domain in $(cat {{domains.txt}}); do flarectl zone info --zone=$domain; done
- List all firewall rules:
flarectl firewall rules list
