flarectl

Official CLI for Cloudflare.

TLDR

Block a specific IP

$ flarectl firewall rules create --zone="[example.com]" --value="[8.8.8.8]" --mode="[block]" --notes="[Block bad actor]"
copy


Add a DNS record
$ flarectl dns create --zone="[example.com]" --name="[app]" --type="[CNAME]" --content="[myapp.herokuapp.com]" --proxy
copy


List all Cloudflare IPv4/IPv6 ranges
$ flarectl ips --ip-type [ipv4|ipv6|all]
copy


Create many new Cloudflare zones automatically with names from domains.txt
$ for domain in $(cat [domains.txt]); do flarectl zone info --zone=$domain; done
copy


List all firewall rules
$ flarectl firewall rules list
copy

Copied to clipboard