Skip to content

Commit 12fb171

Browse files
authored
docs: Conduit is run with conduit run and not with conduit anymore (#2066)
1 parent a3aa0c4 commit 12fb171

File tree

2 files changed

+38
-32
lines changed

2 files changed

+38
-32
lines changed

Diff for: README.md

+37-31
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ the [latest release](https://github.com/conduitio/conduit/releases/latest) and
5555
simply run it!
5656

5757
```sh
58-
./conduit
58+
./conduit run
5959
```
6060

6161
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
6565
UI.
6666

6767
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
6969
[configuring Conduit](#configuring-conduit).
7070

7171
### Homebrew
@@ -125,20 +125,23 @@ configure its behavior. Each CLI flag has a corresponding environment variable
125125
and a corresponding field in the configuration file. Conduit uses the value for
126126
each configuration option based on the following priorities:
127127

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
129129
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
135135
`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:
142145

143146
```yaml
144147
db:
@@ -147,9 +150,13 @@ each configuration option based on the following priorities:
147150
connection-string: postgres://localhost:5432/conduitdb # -db.postgres.connection-string or CONDUIT_DB_POSTGRES_CONNECTION_STRING
148151
```
149152
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.
153160

154161
## Storage
155162

@@ -176,7 +183,7 @@ would be: `-db.postgres.connection-string=postgres://localhost:5432/conduitdb`.
176183
The full example in our case would be:
177184

178185
```shell
179-
./conduit -db.type=postgres -db.postgres.connection-string="postgresql://localhost:5432/conduitdb"
186+
./conduit run -db.type=postgres -db.postgres.connection-string="postgresql://localhost:5432/conduitdb"
180187
```
181188

182189
## Connectors
@@ -213,24 +220,25 @@ a [Kafka Connect wrapper](https://github.com/conduitio/conduit-kafka-connect-wra
213220
that allows you to run any Apache Kafka Connect connector as part of a Conduit
214221
pipeline.
215222

216-
If you are interested in writing a connector yourself, have a look at our
217-
[Go Connector SDK](https://github.com/ConduitIO/conduit-connector-sdk). Since
218-
standalone connectors communicate with Conduit through gRPC they can be written
219-
in virtually any programming language, as long as the connector follows
220-
the [Conduit Connector Protocol](https://github.com/ConduitIO/conduit-connector-protocol)
221-
.
223+
If you are interested in writing a connector yourself, have a look at
224+
our [Go Connector SDK](https://github.com/ConduitIO/conduit-connector-sdk).
225+
Since standalone connectors communicate with Conduit through gRPC they can be
226+
written in virtually any programming language, as long as the connector follows
227+
the [Conduit Connector Protocol](https://github.com/ConduitIO/conduit-connector-protocol).
222228

223229
## Processors
224230

225231
A processor is a component that operates on a single record that flows through a
226232
pipeline. It can either change the record (i.e. **transform** it) or **filter**
227233
it out based on some criteria.
228234

229-
Conduit provides a number of built-in processors, which can be used to manipulate fields,
230-
send requests to HTTP endpoints, and more, check [Builtin processors](https://conduit.io/docs/using/processors/builtin/)
235+
Conduit provides a number of built-in processors, which can be used to
236+
manipulate fields, send requests to HTTP endpoints, and more,
237+
check [built-in processors](https://conduit.io/docs/using/processors/builtin/)
231238
for the list of built-in processors and documentations.
232239

233-
Conduit also provides the ability to write your own [Standalone Processor](https://conduit.io/docs/developing/processors/building),
240+
Conduit also provides the ability to write your
241+
own [standalone processor](https://conduit.io/docs/developing/processors/building),
234242
or you can use the built-in processor [`custom.javascript`](https://conduit.io/docs/using/processors/builtin/custom.javascript)
235243
to write custom processors in JavaScript.
236244

@@ -244,8 +252,7 @@ Conduit exposes a gRPC API and an HTTP API.
244252
The gRPC API is by default running on port 8084. You can define a custom address
245253
using the CLI flag `-grpc.address`. To learn more about the gRPC API please have
246254
a look at
247-
the [protobuf file](https://github.com/ConduitIO/conduit/blob/main/proto/api/v1/api.proto)
248-
.
255+
the [protobuf file](https://github.com/ConduitIO/conduit/blob/main/proto/api/v1/api.proto).
249256

250257
The HTTP API is by default running on port 8080. You can define a custom address
251258
using the CLI flag `-http.address`. It is generated
@@ -281,8 +288,7 @@ documentation:
281288
## Contributing
282289

283290
For a complete guide to contributing to Conduit, see
284-
the [Contribution Guide](https://github.com/ConduitIO/conduit/blob/master/CONTRIBUTING.md)
285-
.
291+
the [contribution guide](https://github.com/ConduitIO/conduit/blob/master/CONTRIBUTING.md).
286292

287293
We welcome you to join the community and contribute to Conduit to make it
288294
better! When something does not work as intended please check if there is

Diff for: docs/connector_discovery.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ relative to the Conduit binary so Conduit can find them. Alternatively, the path
77
adjusted using the CLI flag `-connectors.path`, for example:
88

99
```shell
10-
./conduit -connectors.path=/path/to/connectors/
10+
./conduit run -connectors.path=/path/to/connectors/
1111
```
1212

1313
Names of the connector binaries are not important, since Conduit is getting the information about connectors from

0 commit comments

Comments
 (0)