You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: [SNOW-3444080] add env.yml support to snow dbt deploy
Adds three flags to `snow dbt deploy` that bring env.yml into the deploy
flow alongside profiles.yml:
- `--env-file-dir <path>`: inject env.yml from a separate directory into
the staged project root, mirroring `--profiles-dir`.
- `--default-environment <name>`: set DEFAULT_ENVIRONMENT on the DBT
PROJECT object (CREATE / CREATE OR REPLACE / ALTER SET).
- `--unset-default-environment`: clear DEFAULT_ENVIRONMENT on alter,
mutually exclusive with --default-environment.
env.yml is staged like profiles.yml: copied from the source directory by
default, optionally overridden via `--env-file-dir`, and round-tripped
through pyyaml so YAML comments don't leak onto the stage. The CLI does
no client-side schema validation — the server enforces env-var prefixes,
secret-key rules, and reserved environment names.
Server support for these properties is gated by ENABLE_DBT_ENV_VARS
(GS PR #404443).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments