π¦ ClawHub
Env Config Validator
by @charlie-morrison
Validate .env files against schemas, compare environments (dev vs prod), detect common mistakes (trailing spaces, placeholders, invalid ports, missing protoc...
π‘ Examples
# Validate with auto-detected common checks
python3 scripts/validate_env.py .envValidate against a schema
python3 scripts/validate_env.py .env --schema env-schema.jsonCompare dev vs prod
python3 scripts/validate_env.py --diff .env.development .env.productionGenerate schema from existing .env
python3 scripts/validate_env.py --generate-schema .env -o env-schema.jsonJSON output for CI
python3 scripts/validate_env.py .env --output json --severity error
βοΈ Configuration
| Flag | Default | Description |
|------|---------|-------------|
| --schema | β | JSON schema file for type/required validation |
| --diff FILE FILE | β | Compare two env files |
| --generate-schema | β | Auto-generate schema from .env file |
| --output | text | Output format: text, json, markdown |
| -o | stdout | Output file path |
| --ignore | β | Skip specific check IDs (repeatable) |
| --severity | info | Minimum severity: error, warning, info |
TERMINAL
clawhub install env-config-validator