pwctl -U admin -P admin -u localhost:8080 subcommand
-u
: username-p
: password (optionally we can save the credentials in.config
or environment variable, to avoid putting password in command line and make it persistent)-h
: host (optional, default tolocalhost:8080
)
list
: list only essential information. For detail, useget
subcommand.database
metric
preset
stat
(same asget
)
get
: get detailed information.database
--id
or--name
for detail, by defaultlist
only shows id, name
metric
--id
for detail, by defaultlist
only shows id, name- limit the output number?
preset
stat
add
: use yaml filedatabase
metric
preset
delete
database
--name
metric
--id
--name
preset
--name
update
: use yaml filedatabase
metric
preset
status
: check status by webpage content keyword or add a dedicated status APIsink
: need to add additional api for thispause
: need to add additional api for this