Required

Require a value that is present and not blank

Dotenv.toml

Variables are optional by default. Set required = true at the root to require nonblank values for all declarations by default.


strict = true

[env.API_KEY]
required = true

Use either required or optional in a declaration, never both. optional = false is equivalent to required = true.

markdown