Feature Request: Flag to set environment variables on cli
See original GitHub issueI’ve looked for if this exists and not found anything.
Requested API Example
nodemon --env MY_VAR=asdf --exec something
I know there are other ways to achieve this, but I think this deserves a first class cli argument.
Is this something that would be accepted if a PR were made?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
feature request: add a flag that tells bazel to include ... - GitHub
I understand the concept of wanting to have a sandboxed environment for builds on many software in order to maintain reproducibility, ...
Read more >Angular Feature Flags: Feature toggle applications by using ...
Feature Flags in angular can be extremely powerful to toggle features ... pass in environment variables through the command line to toggle ...
Read more >How to prevent Netlify CLI from injecting .env? - Support
Is there any way to configure netlify.toml or a CLI flag that can disable the automatic injection of the .env variables into the...
Read more >Environment variables to configure the AWS CLI
Environment variables provide another way to specify configuration options and credentials, and can be useful for scripting or temporarily setting a named ...
Read more >How to Use Feature Flags | by Ben Brazier | 05 July 2022 - Torvo
This is a quick and easy way to change settings but we should avoid using them to configure feature flags. Environment Variables.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The proposition usually used (ex
MY_VAR=asdf nodemon ...) does not work on windows, however usuallycross-envis used in this case:@caesay this is a good candidate for the FAQ - I’m definitely a fan of leveraging existing tools that make the work easier 👍