You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-31
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ the [latest release](https://github.com/conduitio/conduit/releases/latest) and
55
55
simply run it!
56
56
57
57
```sh
58
-
./conduit
58
+
./conduit run
59
59
```
60
60
61
61
Once you see that the service is running, the configured pipeline should start
@@ -65,7 +65,7 @@ to `http://localhost:8080/openapi` and exploring the HTTP API through Swagger
65
65
UI.
66
66
67
67
Conduit can be configured through command line parameters. To view the full list
68
-
of available options, run `./conduit --help` or see
68
+
of available options, run `./conduit run --help` or see
69
69
[configuring Conduit](#configuring-conduit).
70
70
71
71
### Homebrew
@@ -125,20 +125,23 @@ configure its behavior. Each CLI flag has a corresponding environment variable
125
125
and a corresponding field in the configuration file. Conduit uses the value for
126
126
each configuration option based on the following priorities:
127
127
128
-
- CLI flags (highest priority) - if a CLI flag is provided it will always be
128
+
-**CLI flags (highest priority)** - if a CLI flag is provided it will always be
129
129
respected, regardless of the environment variable or configuration file. To
130
-
see a full list of available flags run `conduit --help`.
131
-
- Environment variables (lower priority) - an environment variable is only used
132
-
if no CLI flag is provided for the same option. Environment variables have
133
-
the prefix `CONDUIT` and contain underscores instead of dots and hyphens (e.g.
134
-
the flag `-db.postgres.connection-string` corresponds to
130
+
see a full list of available flags run `conduit run --help`.
131
+
-**Environment variables (lower priority)** - an environment variable is only
132
+
used if no CLI flag is provided for the same option. Environment variables
133
+
have the prefix `CONDUIT` and contain underscores instead of dots and
134
+
hyphens (e.g. the flag `-db.postgres.connection-string` corresponds to
135
135
`CONDUIT_DB_POSTGRES_CONNECTION_STRING`).
136
-
- Configuration file (lowest priority) - Conduit by default loads the file
137
-
`conduit.yaml` placed in the same folder as Conduit. The path to the file can
138
-
be customized using the CLI flag `-config`. It is not required to provide a
139
-
configuration file and any value in the configuration file can be overridden
140
-
by an environment variable or a flag. The file content should be a YAML
141
-
document where keys can be hierarchically split on `.`. For example:
136
+
-**Configuration file (lowest priority)** - By default, Conduit loads a
137
+
configuration file named `conduit.yaml` located in the same directory as the
138
+
Conduit binary. You can customize the directory path to this file using the
139
+
CLI flag `--config.path`. The configuration file is optional, as any value
140
+
specified within it can be overridden by an environment variable or a CLI
141
+
flag.
142
+
143
+
The file must be a YAML document, and keys can be hierarchically structured
144
+
using `.`. For example:
142
145
143
146
```yaml
144
147
db:
@@ -147,9 +150,13 @@ each configuration option based on the following priorities:
147
150
connection-string: postgres://localhost:5432/conduitdb # -db.postgres.connection-string or CONDUIT_DB_POSTGRES_CONNECTION_STRING
148
151
```
149
152
150
-
This parsing configuration is provided thanks to our own CLI library [ecdysis](https://github.com/conduitio/ecdysis),
151
-
which builds on top of [Cobra](https://github.com/spf13/cobra) and uses [Viper](https://github.com/spf13/viper)
152
-
under the hood.
153
+
To generate a configuration file with default values, use:
154
+
`conduit init --path <directory where conduit.yaml will be created>`.
155
+
156
+
This parsing configuration is provided thanks to our own CLI
157
+
library [ecdysis](https://github.com/conduitio/ecdysis), which builds on top
158
+
of [Cobra](https://github.com/spf13/cobra) and
159
+
uses [Viper](https://github.com/spf13/viper) under the hood.
153
160
154
161
## Storage
155
162
@@ -176,7 +183,7 @@ would be: `-db.postgres.connection-string=postgres://localhost:5432/conduitdb`.
0 commit comments