-
Notifications
You must be signed in to change notification settings - Fork 69
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
Native support for .env files #1075
Comments
This issue has been linked to a new work item: W-15694504 |
Is there any workaround for supporting .env files in |
You can you use dotenv in CLI's bin/run.js to load a .env file |
@mdonnalley I see! I've already done this actually. 😄 But how can I make that work for the |
|
Is your feature request related to a problem? Please describe.
@oclif/core should natively support .env files using process.loadEnvFile
Describe the solution you'd like
Call process.loadEnvFile at the beginning of
run
using path set insettings
The call should be gated by a check for the node version to avoid any runtime errors.
The text was updated successfully, but these errors were encountered: