@@ -5,12 +5,18 @@ cli4 \- Command line access to CloudFlare v4 API
55
66.SH SYNOPSIS
77.B cli4
8+ [\fB \- V \fR ]
89[\fB \- h \fR |\fB \-\- help]
910[ \fB \- v \fR |\fB \-\- verbose]
1011[ \fB \- q \fR |\fB \-\- quiet]
1112[ \fB \- j \fR |\fB \-\- json]
1213[ \fB \- y \fR |\fB \-\- yaml]
1314[ \fB item \fR =\fI value \fR ...]
15+ [\fB \- G \fR |\fB \-\- get]
16+ [ \fB \- P \fR |\fB \-\- patch]
17+ [ \fB \- O \fR |\fB \-\- post]
18+ [ \fB \- U \fR |\fB \-\- put]
19+ [ \fB \- D \fR |\fB \-\- delete]
1420.IR /command ...
1521
1622.SH DESCRIPTION
@@ -19,27 +25,29 @@ provides command line access to CloudFlare v4 API
1925
2026.SH OPTIONS
2127.TP
28+ .IP " [\- V, \-\- version]"
29+ Display program version number and exit.
2230.IP " [\- h, \-\- help]"
2331This information (in a terse form).
2432.IP " [\- v, \-\- verbose]"
2533Provide some protcol debugging information.
2634.IP " [\- q, \-\- quiet]"
27- Don't output any JSON/YAML responses
35+ Don't output any JSON/YAML responses.
2836.IP " [\- j, \-\- json]"
29- Output in JSON format
37+ Output response data in JSON format (the default).
3038.IP " [\- y, \-\- yaml]"
31- Output in YAML format
32- .IP \-\- get
39+ Output response data in YAML format (if yaml package installed).
40+ .IP " \-\- get"
3341Send HTTP request as a \fB GET \fR (the default).
34- .IP \-\- patch
42+ .IP " \-\- patch"
3543Send HTTP request as a \fB PATCH \fR .
36- .IP \-\- post
44+ .IP " \-\- post"
3745Send HTTP request as a \fB POST \fR .
38- .IP \-\- put
46+ .IP " \-\- put"
3947Send HTTP request as a \fB PUT \fR .
40- .IP \-\- delete
48+ .IP " \-\- delete"
4149Send HTTP request as a \fB DELETE \fR .
42- .IP item= \fI value \fR
50+ .IP " item=\fI value \fR "
4351Set a paramater or data value to send with a \fB GET \fR , \fB PATCH \fR , \fB POST \fR , \fB PUT \fR or \fB DELETE \fR command. The value is sent as a string.
4452.IP item:= \fI value \fR
4553Set a paramater or data value to send with a \fB GET \fR , \fB PATCH \fR , \fB POST \fR , \fB PUT \fR or \fB DELETE \fR command. The value is sent as an interger.
@@ -54,22 +62,31 @@ The output is either JSON or YAML formatted.
5462.SH EXAMPLES
5563.B cli4 /zones
5664List infomation for all zones.
65+
5766.B cli4 /zones/:example.com
5867List specific zone info.
68+
5969.B cli4 /zones/:example.com/settings
6070List settings for a specific zone.
71+
6172.B cli4 --delete purge_everything=true /zones/:example.com/purge_cache
6273Purge cache for a specific zone.
74+
6375.B cli4 --delete files='[http://example.com/css/styles.css]' /zones/:example.com/purge_cache
6476Purge cache for a specific zone.
77+
6578.B cli4 --delete files='[http://example.com/css/styles.css,http://example.com/js/script.js] /zones/:example.com/purge_cache
6679Purge cache for a specific zone.
80+
6781.B cli4 --delete tags='[tag1,tag2,tag3]' /zones/:example.com/purge_cache
6882Purge cache for a specific zone.
83+
6984.B cli4 /zones/:example.com/available_plans
7085List available plans for a zone.
86+
7187.B cli4 --patch status=active /zones/:example.com/dnssec
7288Make DNSSEC active for specfic zone.
89+
7390.B cli4 /zones/:example.com/dnssec
7491List DNSSEC infomation and status for a specific zone.
7592
0 commit comments