7. Provide Multiple Env Files with Overload
With these files present in your working directory:
dotenv
ALIQUIP=laboris
dotenv
VOLUPTATE=voluptate et amet
properties
ALIQUIP=non laboris
yaml
commodo: Dolor ipsum tempor ${ALIQUIP}
mollit:
- officia ${VOLUPTATE} minim
When the following command is executed:
sh
$ dotenv-subst --overload --env-file=.env --env-file=.env.dolor --env-file=lorem.properties pariatur.yaml
The interpolated output is written to the file(s) below:
yaml
commodo: Dolor ipsum tempor non laboris
mollit:
- officia voluptate et amet minim
🔍 Further Reading
Check out the supported syntax for defining interpolation variables in your source files.
All available command options and flags are documented in CLI Options Reference.