CLI tool to generate and populate
.env files from
configure-env will read a
.env.example or any other similar
.env file and prompt for values for each variable that has a comment header above it. Afterwards it will generate a
.env file out of it.
It works as a more user-friendly approach to:
cp .env.example .env
You can install the CLI tool via
npm or another package manager. Ideally install it as a dev dependency instead of global:
# Install it as a dev dependencynpm install configure-env --save-dev# Afterwards you can use by using:node_modules/.bin/configure-envnpx configure-env# Or inside your package.json scripts section as "configure-env"
In a project that contains a
.env.example file, run:
$ npx configure-env --helpPrompts user
This project welcomes contributions from the community. Please see the
CONTRIBUTING.md file for more details.
Code of Conduct
Please be aware that this project has a Code of Conduct. The tldr; is to just be excellent to each other ❤️
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!