Skip to content

Commit 8925729

Browse files
docs: update cli reference (#150)
1 parent df3fb3a commit 8925729

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ To check that your pipelines are valid, you can use the `check` command. It uses
351351
- check that your pipeline can be compiled
352352
- check that all configs related to the pipeline are respecting the pipeline definition (using a Pydantic model based on pipeline signature)
353353

354-
To validate one specific pipeline:
354+
To validate one or multiple pipeline(s):
355355
```bash
356-
vertex-deployer check dummy_pipeline
356+
vertex-deployer check dummy_pipeline <other pipeline name>
357357
```
358358

359359
To validate all pipelines in the `vertex/pipelines` folder:
@@ -491,6 +491,7 @@ create
491491
│ ├─ settings.py
492492
│ └─ utils
493493
│ ├─ config.py
494+
│ ├─ console.py
494495
│ ├─ exceptions.py
495496
│ ├─ logging.py
496497
│ ├─ models.py

docs/CLI_REFERENCE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ $ vertex-deployer check [OPTIONS] PIPELINE_NAMES...
5454
**Options**:
5555
* `--all, -a / --no-all`: Whether to check all pipelines. [default: no-all]
5656
* `--config-filepath, -cfp PATH`: Path to the json/py file with parameter values and input artifacts to check. If not specified, all config files in the pipeline dir will be checked.
57+
* `--warn-defaults, -wd / --no-warn-defaults, -nwd`: Whether to warn when a default value is used and not overwritten in config file. [default: warn-defaults]
58+
* `raise-for-defaults, -rfd / --no-raise-for-defaults, -nrfd`: Whether to raise an validation error when a default value is used.and not overwritten in config file. [default: no-raise-for-defaults]
5759
* `--raise-error, -re / --no-raise-error, -nre`: Whether to raise an error if the pipeline is not valid. [default: no-raise-error]
5860
* `--help`: Show this message and exit.
5961

@@ -114,6 +116,7 @@ $ vertex-deployer deploy [OPTIONS] PIPELINE_NAME
114116
* `--schedule, -s / --no-schedule, -ns`: Whether to create a schedule for the pipeline. [default: no-schedule]
115117
* `--cron TEXT`: Cron expression for scheduling the pipeline. To pass it to the CLI, use hyphens e.g. `0-10-*-*-*`.
116118
* `--delete-last-schedule, -dls / --no-delete-last-schedule`: Whether to delete the previous schedule before creating a new one. [default: no-delete-last-schedule]
119+
* ` --scheduler-timezone TEXT` : IANA Timezone for the scheduler. [default: Europe/Paris]
117120
* `--tags TEXT`: The tags to use when uploading the pipeline. [default: latest]
118121
* `--config-filepath, -cfp PATH`: Path to the json/py file with parameter values and input artifacts to use when running the pipeline.
119122
* `--config-name, -cn TEXT`: Name of the json/py file with parameter values and input artifacts to use when running the pipeline. It must be in the pipeline config dir. e.g. `config_dev.json` for `./vertex/configs/{pipeline-name}/config_dev.json`.

docs/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ You can override default options for specific CLI commands in the pyproject.toml
1212
You can also override global deployer options such as logging level, or pipelines / config root path to better fit your repo structure.
1313

1414
```toml title="pyproject.toml"
15-
[tool.vertex-deployer]
15+
[tool.vertex_deployer]
1616
log-level = "INFO"
1717
pipelines-root-path = "./vertex/pipelines"
1818
config-root-path = "./configs"
1919

20-
[tool.vertex-deployer.deploy]
20+
[tool.vertex_deployer.deploy]
2121
enable-cache = true
2222
env-file = "example.env"
2323
compile = true

0 commit comments

Comments
 (0)