Command line flags override the confd configuration file, which is useful for testing and onetime runs. This also means that you can use confd without a configuration file.
Note: All flags use a single
-, which is much different from GNU style flags that use--. So you have to use-noopand not--noop.
To display the confd command line flags use the -h flag
confd -h
Usage of confd:
-client-cert="": the client cert
-client-key="": the client key
-confdir="/etc/confd": confd conf directory
-config-file="": the confd config file
-consul=false: specified to enable use of Consul
-consul-addr="": address of Consul HTTP interface
-debug=false: enable debug logging
-etcd-scheme="http": the etcd URI scheme. (http or https)
-interval=600: etcd polling interval
-node=[]: list of etcd nodes
-noop=false: only show pending changes, don't sync configs.
-onetime=false: run once and exit
-prefix="/": etcd key path prefix
-quiet=false: enable quiet logging. Only error messages are printed.
-srv-domain="": the domain to query for the etcd SRV record, i.e. example.com
-verbose=false: enable verbose logging