-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2aa6bf0
commit f6d6a97
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Command Line Flags | ||
|
||
Command line flags override the confd [configuration file](https://github.com/kelseyhightower/confd/wiki/Configuration-Guide), 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 `-noop` and not `--noop`. | ||
To display the confd command line flags use the `-h` flag | ||
|
||
```Bash | ||
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 | ||
-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 | ||
``` |