Basic Usage
TL;DR
Deploy pipeline:
vertex-deployer deploy dummy_pipeline \
--compile \
--upload \
--run \
--env-file example.env \
--tags my-tag \
--config-filepath vertex/configs/dummy_pipeline/config_test.json \
--experiment-name my-experiment \
--enable-caching \
--skip-validation
Check pipelines:
vertex-deployer check --all
🚀 CLI: Deploying a Pipeline with deploy
Let's say you defined a pipeline in dummy_pipeline.py and a config file named config_test.json. You can deploy your pipeline using the following command:
vertex-deployer deploy dummy_pipeline \
--compile \
--upload \
--run \
--env-file example.env \
--tags my-tag \
--config-filepath vertex/configs/dummy_pipeline/config_test.json \
--experiment-name my-experiment \
--enable-caching \
--skip-validation
✅ CLI: Checking Pipelines are valid with check
To check that your pipelines are valid, you can use the check command. It uses a pydantic model to:
- check that your pipeline imports and definition are valid
- check that your pipeline can be compiled
- check that all configs related to the pipeline are respecting the pipeline definition (using a Pydantic model based on pipeline signature)
To validate one or multiple pipeline(s):
vertex-deployer check dummy_pipeline <other pipeline name>
To validate all pipelines in the vertex/pipelines folder:
vertex-deployer check --all
🛠️ CLI: Other commands
config
You can check your vertex-deployer configuration options using the config command.
Fields set in pyproject.toml will overwrite default values and will be displayed differently:
vertex-deployer config --all
create
You can create all files needed for a pipeline using the create command:
vertex-deployer create my_new_pipeline --config-type py
This will create a my_new_pipeline.py file in the vertex/pipelines folder and a vertex/config/my_new_pipeline/ folder with multiple config files in it.
init
To initialize the deployer with default settings, folder structure, and CI/CD templates, use the init command:
vertex-deployer init
The interactive wizard walks you through:
- Configure the deployer — set
vertex_folder_path, log level, and default command options inpyproject.toml - Build default folder structure — scaffold
vertex/withpipelines/,configs/,components/,deployment/, andlib/ - Create a pipeline — generate a starter pipeline file and config
- Set up CI/CD — generate a GitHub Actions (
.github/workflows/cd.yml) or GitLab CI (.gitlab-ci.yml) workflow with multi-environment deployment (dev → stg → prd)
$ vertex-deployer init
Welcome to Vertex Deployer!
This command will help you getting fired up.
Do you want to configure the deployer? [y/n]: n
Do you want to build default folder structure [y/n]: y
Do you want to create a pipeline? [y/n]: n
Which CI/CD platform do you want to use? (github/gitlab/none) [none]: github
All done ✨
Use --default to skip all prompts and create the full structure instantly (without CI/CD templates):
vertex-deployer init --default
list
You can list all pipelines in the vertex/pipelines folder using the list command:
vertex-deployer list --with-configs
🍭 CLI: Options
vertex-deployer --help
To see package version:
vertex-deployer --version
To adapt log level, use the --log-level option. Default is INFO.
vertex-deployer --log-level DEBUG deploy ...