env-cmd icon indicating copy to clipboard operation
env-cmd copied to clipboard

[Feature Request] Possibility to reference existing variables

Open kkuriata opened this issue 4 years ago • 2 comments

Possibility to use existing variables:

GENERIC_PATH=/some/path
SPECIFIC_PATH_1=${GENERIC_PATH}/specific1
SPECIFIC_PATH_2=${GENERIC_PATH}/specific2

kkuriata avatar Sep 13 '21 20:09 kkuriata

Any updates about this?

JamersonAguiarOSF avatar Oct 19 '22 13:10 JamersonAguiarOSF

you can use dotenvx for this

HELLO="World"
HELLO2=$HELLO
// index.js
console.log(`Hello ${process.env.HELLO}`)
console.log(`Hello ${process.env.HELLO2}`)
dotenvx run -- node index.js

motdotla avatar Feb 12 '24 05:02 motdotla