cf-pr-toggle

Build Status

A dead simple Golang project tool in order to toggle my Page Rules on Cloudflare.

Toggle means either enable or disable a given rule.

Go dependencies

Building

go build

Testing

go test -v

Usage

You need to pass the 2 following variables to authenticate against the Cloudflare API:

$ export CLOUDFLARE_EMAIL=<youremail> CLOUDFLARE_TOKEN=<yourtoken>
$ ./cf-pr-toggle # list existing rules
$ ./cf-pr-toggle <rule-id> # toggle rule with id <rule-id>