--project-dir
and DBT_PROJECT_DIR
#3053
Labels
content
Improvements or additions to content
dbt-core v1.5
Docs impact for the v1.5 release (Apr 2023)
improvement
Use this when an area of the docs needs improvement as it's currently unclear
Milestone
Contributions
Link to the page on docs.getdbt.com requiring updates
I don't think we document
--project-dir
anywhere!!We document
--profiles-dir
in a few places — namely this one — but only in passing.What part(s) of the page would you like to see updated?
dbt subcommands have accepted a
--project-dir
flag since forever.99% of the time, it makes sense to just run dbt from the same working directory as the dbt project (= where
dbt_project.yml
lives). This is an advanced feature, often for use in orchestration, that allows dbt commands to be run from a working directory that's different from the one where the dbt project lives.Starting in v1.5, dbt will now accept an env var
DBT_PROJECT_DIR
that's equivalent to passing the--project-dir
flag. If both are set, the flag wins (takes precedence).Additional information
The text was updated successfully, but these errors were encountered: