Update readme

pull/7/head
Micke Nordin 2 years ago
parent acd53fdcfa
commit 9791c72a6e
Signed by: micke
GPG Key ID: 0DA0A7A5708FE257

@ -5,60 +5,69 @@ This is a commandline tool for knotapi
https://gitlab.nic.cz/knot/knot-dns-rest https://gitlab.nic.cz/knot/knot-dns-rest
## Usage ## Usage
``` ```
usage: knotctl [-h] [--json | --no-json] {add,delete,list,config,update} ... usage: knotctl [-h] [--json | --no-json] {add,config,delete,list,update} ...
positional arguments: {add,delete,list,config,update}
options: positional arguments:
-h, --help show this help message and exit {add,config,delete,list,update}
--json, --no-json
options:
-h, --help show this help message and exit
--json, --no-json
``` ```
### Add ### ADD
``` ```
usage: knotctl add [-h] [-d [DATA ...]] [-n NAME] [-r RTYPE] -z ZONE usage: knotctl add [-h] -d DATA -n NAME -r RTYPE -t TTL -z ZONE
options:
-h, --help show this help message and exit options:
-d [DATA ...], --data [DATA ...] Specify any number of key - value pairs: name=dns1.example.com. -h, --help show this help message and exit
-n NAME, --name NAME -d DATA, --data DATA
-r RTYPE, --rtype RTYPE -n NAME, --name NAME
-z ZONE, --zone ZONE -r RTYPE, --rtype RTYPE
-t TTL, --ttl TTL
-z ZONE, --zone ZONE
``` ```
### Delete ### CONFIG
``` ```
usage: knotctl delete [-h] [-d [DATA ...]] [-n NAME] [-r RTYPE] -z ZONE usage: knotctl config [-h] [-b BASEURL] [-p PASSWORD] [-u USERNAME]
options:
-h, --help show this help message and exit options:
-d [DATA ...], --data [DATA ...] Specify any number of key - value pairs: name=dns1.example.com. -h, --help show this help message and exit
-n NAME, --name NAME -b BASEURL, --baseurl BASEURL
-r RTYPE, --rtype RTYPE -p PASSWORD, --password PASSWORD
-z ZONE, --zone ZONE -u USERNAME, --username USERNAME
``` ```
### List ### DELETE
``` ```
usage: knotctl list [-h] [-d [DATA ...]] [-n NAME] [-r RTYPE] [-z ZONE] usage: knotctl delete [-h] [-d DATA] [-n NAME] [-r RTYPE] -z ZONE
options:
-h, --help show this help message and exit options:
-d [DATA ...], --data [DATA ...] Specify any number of key - value pairs: name=dns1.example.com. -h, --help show this help message and exit
-n NAME, --name NAME -d DATA, --data DATA
-r RTYPE, --rtype RTYPE -n NAME, --name NAME
-z ZONE, --zone ZONE -r RTYPE, --rtype RTYPE
-z ZONE, --zone ZONE
``` ```
### Config ### LIST
``` ```
usage: knotctl config [-h] [-b BASEURL] [-p PASSWORD] [-u USERNAME] usage: knotctl list [-h] [-d DATA] [-n NAME] [-r RTYPE] [-z ZONE]
options:
-h, --help show this help message and exit options:
-b BASEURL, --baseurl BASEURL -h, --help show this help message and exit
-p PASSWORD, --password PASSWORD -d DATA, --data DATA
-u USERNAME, --username USERNAME -n NAME, --name NAME
-r RTYPE, --rtype RTYPE
-z ZONE, --zone ZONE
``` ```
### Update ### UPDATE
``` ```
usage: knotctl update [-h] -d [DATA ...] -n NAME -r RTYPE -z ZONE usage: knotctl update [-h] -d DATA -n NAME -r RTYPE -t TTL -z ZONE
options:
-h, --help show this help message and exit options:
-d [DATA ...], --data [DATA ...] Specify any number of key - value pairs: name=dns1.example.com. -h, --help show this help message and exit
-n NAME, --name NAME -d DATA, --data DATA
-r RTYPE, --rtype RTYPE -n NAME, --name NAME
-z ZONE, --zone ZONE -r RTYPE, --rtype RTYPE
-t TTL, --ttl TTL
-z ZONE, --zone ZONE
``` ```

Loading…
Cancel
Save