$ res [OPTIONS] COMMAND [ARGS]...
$ res add_influxdb marco --length 9 --admin false
Options are:
--length
,-l
: the length of the password--admin
,-a
: admin for user
$ res add_sentry marco --platform python --namespace platform
Options are:
--platform
,-p
: the language of the project--namespace
,-n
: the group in sentry
$ res nginx_reload /tmp/marco.conf /etc/nginx/conf.d/marco.conf --nginx-list nginx.sample --key-file armin.pub --user armin
Arguments are:
local_path
: local nginx conf pathremote_path
: remote nginx conf path, e.g. /etc/nginx/conf.d/marco.conf
Options are:
--nginx-list
,-l
: file that contains nginx server list--key-file
,-k
: SSH public key--user
,-u
: user to login
$ res nginx_clean /etc/nginx/conf.d/marco.conf --nginx-list nginx.sample --key-file armin.pub --user armin
Arguments are:
remote_path
: remote nginx conf path, e.g. /etc/nginx/conf.d/marco.conf
Options are:
--nginx-list
,-l
: file that contains nginx server list--key-file
,-k
: SSH public key--user
,-u
: user to login
$ res set_upstreams -l ./nginx-update-list app1 1.1.1.1:1,2.2.2.2:2
Arguments are:
appname
: as it saidupstreams
: upstreams split by comma
Options are:
--update-list
,-l
: Nginx update interface list file
$ res remove_upstreams -l ./nginx-update_list app1
Arguments are:
appname
: as it said
Options are:
--update-list
,-l
: Nginx update interface list file
--config-path
: path for root config in etcd, which stores mysql/influxdb/sentry key information