Validate and audit .env files for secrets, duplicates, syntax issues, and missing variables.
python3 scripts/env_doctor.py .env
python3 scripts/env_doctor.py .env --example .env.example
python3 scripts/env_doctor.py .env --strict --json
| Flag | Description |
|---|---|
| ------ | ------------- |
--example PATH | .env.example file for comparison |
--json | Output structured JSON |
--strict | Treat empty values as errors |
AWS Access/Secret Keys, GitHub Tokens (ghp_, gho_, ghs_, ghu_, github_pat_), Slack Tokens, Stripe Keys, Google API Keys, Private Key Blocks, JWTs, Twilio Tokens, SendGrid Keys, Heroku API Keys, and generic high-entropy secrets.
共 1 个版本