Skip to content

Latest commit

 

History

History

dbt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Run dbt commands

dbt-coves dbt <arguments> -- <command>

Run dbt commands on environments such as Airflow or CI workers, you can specify the dbt project location and activate a virtual environment in which to run the dbt commands.

Arguments

dbt-coves dbt supports the following arguments

--project-dir
# Path of the dbt project where command will be executed, i.e.: /opt/user/dbt_project
--virtualenv
# Virtual environment path. i.e.: /opt/user/virtualenvs/airflow

Sample usage

dbt-coves dbt --project-dir /opt/user/dbt_project --virtualenv /opt/user/virtualenvs/airflow -- run -s model --vars \"{key: value}\"
# Make sure to escape special characters such as quotation marks
# Double dash (--) between <arguments> and <command> are mandatory