oclif / oclif/core

Native support for .env files

Open
#1,075 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
316
Forks
98
Avg merge
12h 32m
Merged PRs (30d)
2

Description

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 in settings

The call should be gated by a check for the node version to avoid any runtime errors.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the beginning of the run entry point and inspect how the path is provided through settings. Confirm the Node version check prevents calls to process.loadEnvFile where it is unavailable, and that supported versions load the configured .env file; the issue does not name a test file to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.