Skip to content

Commit

Permalink
add env DBT_PROJECT_DIR support #6078 (#6659)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com>
  • Loading branch information
2 people authored and peterallenwebb committed Mar 14, 2023
1 parent d00eb96 commit 5945b60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Features-20230119-141156.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Features
body: add support for DBT_PROJECT_DIR env var
time: 2023-01-19T14:11:56.638325919+01:00
custom:
Author: leo-schick
Issue: "6078"
2 changes: 1 addition & 1 deletion core/dbt/cli/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@

project_dir = click.option(
"--project-dir",
envvar=None,
envvar="DBT_PROJECT_DIR",
help="Which directory to look in for the dbt_project.yml file. Default is the current working directory and its parents.",
default=default_project_dir,
type=click.Path(exists=True),
Expand Down

0 comments on commit 5945b60

Please sign in to comment.