![]() |
![]()
| ![]() |
![]()
NAMEcli4 - Command line access to Cloudflare v4 API SYNOPSIScli4 [-V|--version] [-h|--help] [-v|--verbose] [-e|--examples] [-q|--quiet] [-j|--json] [-y|--yaml] [-n|--ndjson] [-r|--raw] [ir|--image] [-d|--dump] [-b|--binary] [-A openapi-url|--openapi openapi-url] [-p profile-name|--profile profile-name] [item=value ...] [=value ...] [item=@filename ...] [=@filename ...] [-G|--get] [-P|--patch] [-O|--post] [-U|--put] [-D|--delete] /command... DESCRIPTIONcli4 provides command line access to Cloudflare v4 API OPTIONS
COMMAND(S)The command string uses slash (/) to seperate the verbs in the same way that the Cloudflare v4 API documentation does. Any verb starting with colon (:) is either converted to zone_id, user_id, organtization_id, or otherwise. Any verb starting with coloe (:) and followed by 32 hex chracters is passed thru raw. Any verb starting with two colons (::) is passed thru raw. RESULTSThe output is either JSON or YAML formatted. EXAMPLEScli4 /zones List infomation for all zones. cli4 /zones/:example.com List specific zone info. cli4 /zones/:example.com/settings List settings for a specific zone. cli4 --delete purge_everything=true /zones/:example.com/purge_cache Purge cache for a specific zone. cli4 --delete files='[http://example.com/css/styles.css]' /zones/:example.com/purge_cache Purge cache for a specific zone. cli4 --delete files='[http://example.com/css/styles.css,http://example.com/js/script.js] /zones/:example.com/purge_cache Purge cache for a specific zone. cli4 --delete tags='[tag1,tag2,tag3]' /zones/:example.com/purge_cache Purge cache for a specific zone. cli4 /zones/:example.com/available_plans List available plans for a zone. cli4 --patch status=active /zones/:example.com/dnssec Make DNSSEC active for specfic zone. cli4 /zones/:example.com/dnssec List DNSSEC infomation and status for a specific zone. SEE ALSOThe Cloudflare API can be found https://api.cloudflare.com/. Each API call is provided via a similarly named function within the Cloudflare class.
|