Define the rules for your environment variables
A Dotenv.toml contains variable names and rules. Values stay in your .env files or other environment sources. It is safe to commit.
Start with the Dotenv.toml quickstart, then explore each declaration and setting below.
strict = true
[env.DATABASE_URL]
type = "url"
required = true
storage = "encrypted"
redacted = true
[env.PORT]
type = "port"
storage = "plaintext"
redacted = false
Reference
- Declarations
- Strictness
- Required
- Optional
- Types
- Choices
- Minimum
- Maximum
- Encryption
- Redaction
- File overrides
- Syntax
- Commands