Securely store and manage encrypted environment configurations.
Install (Linux only)
curl -sSL https://raw.githubusercontent.com/thinktwiceco/env-manager/master/install.sh | bashCreate encryption key
openssl rand -hex 16 > .secretSecret can also be set via
ENV_MANAGER_SECRETenvironment variable
For files that already have env-manager headers:
env-manager add -f .env.productionFile format:
#- identifier: production
#- restore-as: .env
DATABASE_URL=postgres://localhost/db
API_KEY=secret123For plain environment files without headers:
env-manager create -f secrets.txt -i production -r .envenv-manager get -i productionDecrypts and restores the configuration file.
env-manager listenv-manager remove -i production- Files are encrypted using AES and stored in
.env-manager/ - A
manifest.jsontracks all configurations - Identifiers map to encrypted files for easy retrieval
- On restore, files are decrypted and written with their original name
⚠️ Keep.secretsecure - anyone with this key can decrypt your files- ✅ Add
.secretand.env-manager/to.gitignore - ✅ Valid keys: 16, 24, or 32 bytes (32, 48, or 64 hex characters)