ShieldX v2.0 is a massive upgrade focused on ease of use and power. All your existing commands still work - we just made everything better!
Good news: Your existing workflows continue to work!
# All of these still work exactly the same
shieldx scan ./src
shieldx compare .env .env.prod
shieldx generate .env
shieldx validate .env --keys "API_KEY"# Instead of manual setup...
shieldx init # Easy peasy! 🎉# Better than compare for visual diff
shieldx diff .env .env.prod# Automatically move secrets to .env
shieldx fix ./srcScan command now shows real-time progress:
⠹ Scanning 47/120 files...
Create .shieldxallow to reduce false positives.
Comments are now properly ignored! 🎊
npm install -g shieldx@latestGet all the new goodies:
shieldx init --forceThis creates:
.shieldxallow- Whitelist file- Updated
.shieldxignore - Pre-commit hooks (optional)
# Visual diff
shieldx diff .env .env.example
# Fix secrets interactively
shieldx fix ./src| v1.0 | v2.0 (Better) | Why? |
|---|---|---|
| Manual setup | shieldx init |
Interactive & faster |
compare |
diff |
Beautiful table view |
| Manual fixes | fix |
Automated workflow |
| Plain output | Progress spinners | Better UX |
.shieldxallow- Whitelist for known safe patterns.shieldxrc- Config file (coming soon)- Better
.shieldxignorefrom init
- ✅ Comments no longer flagged as secrets
- ✅ Better progress feedback
- ✅ Reduced false positives
- ✅ Clearer error messages
- ✅ Faster scanning with smart filtering
# New project
shieldx init
# Scan with progress
shieldx scan ./src
# Fix found secrets
shieldx fix ./src
# Visual diff
shieldx diff .env .env.prodEnjoy v2.0! 🚀