Skip to content

Commit

Permalink
Add docs for commandline flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kelseyhightower committed Feb 6, 2014
1 parent 2aa6bf0 commit f6d6a97
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/command-line-flags.md
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
```

0 comments on commit f6d6a97

Please sign in to comment.