You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
knotctl/README.md

102 lines
2.1 KiB

2 years ago
# knotctl
This is a commandline tool for knotapi
2 years ago
https://gitlab.nic.cz/knot/knot-dns-rest
## Usage
```
2 years ago
usage: knotctl [-h] [--json | --no-json]
{add,complete,config,delete,list,update} ...
2 years ago
positional arguments:
2 years ago
{add,complete,config,delete,list,update}
2 years ago
options:
-h, --help show this help message and exit
--json, --no-json
2 years ago
```
2 years ago
### ADD
2 years ago
```
2 years ago
usage: knotctl add [-h] -d DATA -n NAME -r RTYPE -t TTL -z ZONE
options:
-h, --help show this help message and exit
-d DATA, --data DATA
-n NAME, --name NAME
-r RTYPE, --rtype RTYPE
-t TTL, --ttl TTL
-z ZONE, --zone ZONE
2 years ago
```
2 years ago
### COMPLETE
```
usage: knotctl complete [-h] [-s SHELL]
options:
-h, --help show this help message and exit
-s SHELL, --shell SHELL
```
For bash: add this to .bashrc
```
source <(knotctl complete)
2 years ago
```
For fish, run:
```
knotctl complete --shell fish > ~/.config/fish/completions/knotctl.fish
```
For tcsh: add this to .cshrc
```
complete "knotctl" 'p@*@`python-argcomplete-tcsh "knotctl"`@' ;
2 years ago
```
For zsh: add this to .zshrc
```
autoload -U bashcompinit
bashcompinit
source <(knotctl complete)
2 years ago
```
2 years ago
### CONFIG
2 years ago
```
2 years ago
usage: knotctl config [-h] [-b BASEURL] [-p PASSWORD] [-u USERNAME]
options:
-h, --help show this help message and exit
-b BASEURL, --baseurl BASEURL
-p PASSWORD, --password PASSWORD
-u USERNAME, --username USERNAME
2 years ago
```
2 years ago
### DELETE
2 years ago
```
2 years ago
usage: knotctl delete [-h] [-d DATA] [-n NAME] [-r RTYPE] -z ZONE
options:
-h, --help show this help message and exit
-d DATA, --data DATA
-n NAME, --name NAME
-r RTYPE, --rtype RTYPE
-z ZONE, --zone ZONE
2 years ago
```
2 years ago
### LIST
2 years ago
```
2 years ago
usage: knotctl list [-h] [-d DATA] [-n NAME] [-r RTYPE] [-z ZONE]
options:
-h, --help show this help message and exit
-d DATA, --data DATA
-n NAME, --name NAME
-r RTYPE, --rtype RTYPE
-z ZONE, --zone ZONE
2 years ago
```
2 years ago
### UPDATE
2 years ago
```
2 years ago
usage: knotctl update [-h] -d DATA -n NAME -r RTYPE -t TTL -z ZONE
options:
-h, --help show this help message and exit
-d DATA, --data DATA
-n NAME, --name NAME
-r RTYPE, --rtype RTYPE
-t TTL, --ttl TTL
-z ZONE, --zone ZONE
2 years ago
```