This command combines the environment variables in all your separate .env.* (.env.app, .env.auth, .env.db, ...)
files into a single .env
file.
envman build production --key=production-env-key
build [options] [--] [<directories>]...
Argument |
Description |
Default |
directories |
Directories of env files |
["."] |
Option |
Description |
Default |
--key |
Key file for decryption |
|
- Environment variables that are commented out will not be built into the
.env
file.
- If a key is not provided, encrypted variables will be skipped.
- Setting up a git hook for this tool is encouraged. You can use composer-git-hooks (shameless plug), or something else you prefer