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
I want to load the environment variables from a .env file into the current shell. From the docs, I could not find how can I achieve it. If this package could provide a global binary like dotenv then I can execute it like dotenv --dotenv_config_path=.env.
The text was updated successfully, but these errors were encountered:
@zenflow Maybe this feature would be impossible to implement. The closest way to achieve this feature would create a new child process, and pass the envs into it.
You can also execute source .env directly in Unix/Linux or generate a temp bat file which contains a batch of set command, invoke it If you are using Windows cmd.
Thanks for the thoughts here @liudonghua123. I'm going to go ahead and close this. If others take an interest in this beyond dotenv-cli, then it will be something we consider.
I want to load the environment variables from a
.env
file into the current shell. From the docs, I could not find how can I achieve it. If this package could provide a global binary likedotenv
then I can execute it likedotenv --dotenv_config_path=.env
.The text was updated successfully, but these errors were encountered: