bandit -r . -f json -o bandit-report.json

Category: Python & pip

bandit -r . -f json -o bandit-report.json

Run bandit and save results as JSON to a file

Runs bandit and saves results as a JSON file instead of printing to the terminal.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.