Skip to content

Commit

Permalink
add env DBT_PROJECT_DIR support #6078
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 authored and leo-schick committed Feb 18, 2023
1 parent 1fe0c32 commit dc2eee2
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 @@ -219,7 +219,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 dc2eee2

Please sign in to comment.