envlint

Validate your .env files in CI before your app even starts. Works with any language. Schema-based validation for environment variables.

Python CLI Language Agnostic CI/CD Ready GPL-3.0
pip install envlint

Features

🌐

Language Agnostic

One schema works across all your projects - Python, Node, Go, Ruby, or any stack.

🔒

Build-Time Validation

Catch missing or invalid env vars before deployment, not in production.

Zero Runtime Impact

No dependencies or code changes needed. Just validate and deploy.

🔄

CI/CD Native

Exit codes designed for automation. Easy GitHub Actions integration.

📝

YAML Schema

Human-readable schema files with types, patterns, and defaults.

🚀

Auto-Generate Schema

Bootstrap from existing .env files with envlint init.

Supported Types

string
integer
float
boolean
url
email
port
path

Quick Start

.env.schema
DATABASE_URL:
  type: url
  required: true

API_PORT:
  type: port
  default: 3000

DEBUG:
  type: boolean
  default: false

ADMIN_EMAIL:
  type: email
  required: true
Terminal
# Validate your .env file
$ envlint check
✓ All 4 variables validated successfully

# Strict mode - fail on undefined vars
$ envlint check --strict

# Generate schema from existing .env
$ envlint init --from-env