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.
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
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