Encrypt and validate with Dotenv.toml
Create Dotenv.toml in your project root, then encrypt and run your app.
$ dotenvx encrypt
$ dotenvx run -- node index.js
Use -f to select a specific environment file and apply its file overrides.
$ dotenvx encrypt -f .env.production
$ dotenvx run -f .env.production -- node index.js
Dotenvx validates resolved values before starting the command. With strict = true, validation failures stop startup.
See the quickstart for a complete example.