flarectl Command Examples

Official CLI for Cloudflare. More information: https://github.com/cloudflare/cloudflare-go/blob/master/cmd/flarectl/README.md.

flarectl firewall rules create --zone="{{example.com}}" --value="{{8.8.8.8}}" --mode="{{block}}" --notes="{{Block bad actor}}"

flarectl dns create --zone="{{example.com}}" --name="{{app}}" --type="{{CNAME}}" --content="{{myapp.herokuapp.com}}" --proxy

flarectl ips --ip-type {{ipv4|ipv6|all}}

for domain in $(cat {{domains.txt}}); do flarectl zone info --zone=$domain; done

flarectl firewall rules list