When a developer joins a project utilizing Dotenv Vault, they don't manually create .env.vault.local . Instead, the file is born and utilized through a standard CLI lifecycle: 1. Initialization
Executing this command creates the following key files:
| File/Command | Description | Example | | :--- | :--- | :--- | | local | A in the dotenv-vault CLI to encrypt your plain-text environment files. It generates the .env.vault and local files. | npx dotenv-vault local build | | build | The subcommand for local . It packages your .env.* files (like local and .env.production ) into the central .env.vault file. | npx dotenv-vault local build | | .env.vault | The primary, encrypted file that you safely commit to your repository . It holds ciphers for all your environments. | A file containing entries like DOTENV_VAULT_DEVELOPMENT="..." | | .env.keys | A local-only file containing the actual DOTENV_KEY s for decryption. This file must never be committed to version control. | A file containing DOTENV_KEY_DEVELOPMENT="dotenv://..." |
When a developer joins a project utilizing Dotenv Vault, they don't manually create .env.vault.local . Instead, the file is born and utilized through a standard CLI lifecycle: 1. Initialization
Executing this command creates the following key files:
| File/Command | Description | Example | | :--- | :--- | :--- | | local | A in the dotenv-vault CLI to encrypt your plain-text environment files. It generates the .env.vault and local files. | npx dotenv-vault local build | | build | The subcommand for local . It packages your .env.* files (like local and .env.production ) into the central .env.vault file. | npx dotenv-vault local build | | .env.vault | The primary, encrypted file that you safely commit to your repository . It holds ciphers for all your environments. | A file containing entries like DOTENV_VAULT_DEVELOPMENT="..." | | .env.keys | A local-only file containing the actual DOTENV_KEY s for decryption. This file must never be committed to version control. | A file containing DOTENV_KEY_DEVELOPMENT="dotenv://..." |