Declarations

Declare variable names and the rules they must follow.

Usage

Save the file as Envfile in your project directory. It contains names and rules. Values stay in .env or your other environment sources.

Variable names are case-sensitive and must match [A-Za-z_][A-Za-z0-9_]*. Use single or double quotes. Comments begin with #. Blank lines are ignored.

# Envfile
strict true

env "DATABASE_URL", type: "url"
env 'SENTRY_DSN', optional: true

Every declaration is required, encrypted, and redacted by default. Proxying is off. There is no default type, enum, or range.

Options can continue on the next line after a comma:

env "PORT",
  type: "port",
  encrypted: false,
  redacted: false