Installation
This tool can be used as global executable, or as a dependency within an existing project. You can install it with:
sh
# install as global package
npm install -g dotenv-subst
# or as local dependency
npm install -D dotenv-substsh
# install as global package
pnpm add -g dotenv-subst
# or as local dependency
pnpm add -D dotenv-substsh
# install as global package
yarn global add dotenv-subst
# or as local dependency
yarn add -D dotenv-substsh
# install as global package
bun add -g dotenv-subst
# or as local dependency
bun add -D dotenv-substPrerequisites
- Node.js version
^22.14or^23.10.
🔍 Further Reading
Check out the supported syntax for defining interpolation variables in your source files.
See the instructions on CLI usage to learn how to use the tool, or browse the examples section for practical usage scenarios.