From a4081e10a47b46676e3d240f92fe7fdfc1bb1989 Mon Sep 17 00:00:00 2001 From: Steven Ayers Date: Sat, 13 Apr 2024 09:45:47 +0100 Subject: [PATCH] [Feature] CLI Parameter for `packages-install-path` --- .changes/unreleased/Features-20240413-093017.yaml | 6 ++++++ core/dbt/cli/params.py | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 .changes/unreleased/Features-20240413-093017.yaml diff --git a/.changes/unreleased/Features-20240413-093017.yaml b/.changes/unreleased/Features-20240413-093017.yaml new file mode 100644 index 00000000000..afbe4cef945 --- /dev/null +++ b/.changes/unreleased/Features-20240413-093017.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Add cli parameter for packages-install-path +time: 2024-04-13T09:30:17.83824+01:00 +custom: + Author: stevenayers + Issue: "9932" diff --git a/core/dbt/cli/params.py b/core/dbt/cli/params.py index b2716728ce6..67cb4324fb5 100644 --- a/core/dbt/cli/params.py +++ b/core/dbt/cli/params.py @@ -614,6 +614,13 @@ type=click.Path(), ) +packages_install_path = click.option( + "--packages-install-path", + envvar="DBT_PACKAGES_INSTALL_PATH", + help="Configure the 'packages-install-path'. Only applies this setting for the current run. Overrides the 'DBT_PACKAGES_INSTALL_PATH' if it is set.", + type=click.Path(), +) + upgrade = click.option( "--upgrade", envvar=None,