From d9265adfd511cd4d6ca36340113adb8deae49aa1 Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Thu, 19 Jan 2023 11:00:09 +0100 Subject: [PATCH] add env DBT_PROJECT_DIR support #6078 --- .changes/unreleased/Features-20230119-141156.yaml | 6 ++++++ core/dbt/cli/params.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Features-20230119-141156.yaml diff --git a/.changes/unreleased/Features-20230119-141156.yaml b/.changes/unreleased/Features-20230119-141156.yaml new file mode 100644 index 00000000000..dde705b05c5 --- /dev/null +++ b/.changes/unreleased/Features-20230119-141156.yaml @@ -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" diff --git a/core/dbt/cli/params.py b/core/dbt/cli/params.py index ec3c1107fa9..4d5a5e560fc 100644 --- a/core/dbt/cli/params.py +++ b/core/dbt/cli/params.py @@ -226,7 +226,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),