-
Notifications
You must be signed in to change notification settings - Fork 51
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
Override system variables #46
Comments
@doasync Is there an option to do this using If not, I think it's out of scope for this package. I'm gonna close it for now, but feel free to link to documentation / open a PR and I'll re-open this ticket. |
There is a feature request in |
If anyone is looking for an override option, I've added it in a new package dotenv-override-cli. @entropitor I'd be happy to contribute a PR to this repo adding the feature if you'd like (and deprecate my package). To implement an override option I didn't need any changes to |
Hello, The override feature is now available in dotenv v14.1.0 (#46) It would be great to get this feature available in dotenv-cli also. |
I've made a PR for this at #87. |
Add an option to ignore environment vars and set the variables from a file.
For example a user has
NODE_ENV=development
set in his system. Jest will fail on that. I want to be able to ignore system vars and set explicitly all variables that I need for my script/command (NODE_ENV=test
)The text was updated successfully, but these errors were encountered: