Search environment files for suspicious keys.
Section: Security and secrets hygiene
Find password-like env names
bash
bash
rg -i 'password|secret|token|api[_-]?key' .env*Explanation
Useful in onboarding, audits, and pre-release reviews.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Security and secrets hygiene