Schema Validation
Define rules once in YAML and validate everywhere. Types, patterns, enums, ranges, formats, and more.
Validate .env files against a declarative YAML schema. Catch misconfigurations before deployment.
See every major feature in action — from schema generation and validation to secret scanning, linting, schema composition, and source-code auditing.
Define your schema in envguard.yaml:
version: "1.0"
env:
DATABASE_URL:
type: string
required: true
format: url
PORT:
type: integer
default: 3000
min: 1024
max: 65535
DEBUG:
type: boolean
default: falseRun the validator:
$ envguard validate
✓ All environment variables are validcurl -sSL https://github.com/firasmosbehi/envguard/releases/latest/download/envguard-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m | sed 's/x86_64/amd64/') -o /usr/local/bin/envguard
chmod +x /usr/local/bin/envguardbrew install --formula https://raw.githubusercontent.com/firasmosbehi/envguard/main/homebrew/envguard.rbdocker run --rm -v $(pwd):/workspace ghcr.io/firasmosbehi/envguard:latest validatenpm install -g envguard-validatorpip install envguard-validator