-
Couldn't load subscription status.
- Fork 1.1k
add instructions to configure env_vars #8071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: current
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mirnawong1 Thank you for the work to document this! It feels pretty clear to me that the current experience is clunky and inconsistent - we need to make it better!
| export DBT_ENV_VAR1="my_value" | ||
| export DBT_ENV_VAR2="another_value" | ||
| ``` | ||
| 3. Save and apply the changes using the `:wq` command in the terminal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:wq is specific to vim - you can just say, "save the file and start a new shell session"
|
|
||
| | <div style={{width:'200px'}}>Where to configure</div> | Info | Stays active | Best for | | ||
| |---|---|---|---| | ||
| | [OS / shell (recommended)](#configure-at-the-os--shell-level) | Configure at the OS / shell level.<br /><br /> Affects all terminals _and_ the dbt extension (after VS Code reload) | Yes<br /> (across sessions) | Using both extension buttons _and_ terminal commands | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From some quick testing - I can confirm this works for running dbtf commands in terminal/shell, but I don't believe this works for VSCE
| | [Terminal session](#configure-in-the-terminal-session) | Configure in the terminal session using the `export` command.<br /><br /> Affects the current terminal window _only_. | No<br /> (per session) | Quick, temporary testing | | ||
|
|
||
| :::tip Recommendation | ||
| If you use both the dbt extension’s buttons/menus _and_ the terminal, define your env vars at the _OS/shell_ level. This works everywhere with one setup. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced this actually works! Also, I don't love encouraging users to stick their dbt-specific env vars within their global OS user settings / shell profiles
fix link
this pr adds instructions on how to configure env_vars to vsce and fusion cli
raised internally
🚀 Deployment available! Here are the direct links to the updated files: