Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set project-dir in dbt with environment variable?

I am trying to locate my dbt_project.yml file which is not in the root directory of my project. Previously, I was using an env var called DBT_PROJECT_DIR in order to define where dbt_project.yml file is located and it was working fine. In a similar way, I am using DBT_PROFILE_DIR and it still works correct. But I cannot make DBT_PROJECT_DIR work. Any help is appreciated.

like image 442
ozgenbaris Avatar asked Oct 20 '25 14:10

ozgenbaris


1 Answers

Both DBT_PROJECT_DIR and DBT_PROFILES_DIR (for profiles) work now.

documentation:

https://docs.getdbt.com/reference/dbt_project.yml

https://docs.getdbt.com/docs/core/connect-data-platform/connection-profiles#advanced-customizing-a-profile-directory

like image 98
Abdelaziz Besbes Avatar answered Oct 22 '25 03:10

Abdelaziz Besbes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!