We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2b6a03 commit 83cfc2bCopy full SHA for 83cfc2b
sqlmesh_dbt/cli.py
@@ -102,9 +102,14 @@ def dbt(
102
)
103
@vars_option
104
@click.pass_context
105
-def run(ctx: click.Context, vars: t.Optional[t.Dict[str, t.Any]], **kwargs: t.Any) -> None:
+def run(
106
+ ctx: click.Context,
107
+ vars: t.Optional[t.Dict[str, t.Any]],
108
+ env: t.Optional[str] = None,
109
+ **kwargs: t.Any,
110
+) -> None:
111
"""Compile SQL and execute against the current target database."""
- _get_dbt_operations(ctx, vars).run(**kwargs)
112
+ _get_dbt_operations(ctx, vars).run(environment=env, **kwargs)
113
114
115
@dbt.command(name="list")
0 commit comments