All apps/Safety CLI

Safety CLI

safety

Checks Python dependencies for known vulnerabilities and suggests remediations.

Runs as safety|macOS, Linux, Windows|safetycli.com

Command form

ai-draft · 2 tasks · 5 fields

Scan a project for vulnerable Python dependencies. The legacy check command, save-as and login-related options are not covered.

Opens the form; the finished command lands at your prompt, unrun
otty gui safety

safety scan

Scan a project

Scan a project directory for dependency vulnerabilities.

Scan a projectExample values, fixed in this page — nothing here reaches a terminal
Basic
Project folder
directory
Detailed report
--detailed-output
TasksEach one presets the form for one job
Scan a project
targetdetailed_output
Scan with JSON output
targetoutput
ParametersOnly these flags are editable in the form
Project folder
Defaults to the current directory.
path
--target
Output format
string
--outputscreenjson
Detailed report
Only for screen output.
boolean
--detailed-output
Policy file
path
--policy-file
Apply fixes
Rewrites requirements.txt files to secure versions.
boolean
--apply-fixes
SourcesEvery flag above is checked against these
src
Example: safety scan --policy-file /path/to/policy.yml Define a specific project path to scan. (default: current directory) Example: safety scan --target /path/to/project Set the output format for scan results (default: screen) Example: safety scan --output json Enable a verbose scan report for detailed insights (only for screen output) Example: safety scan…
help2026-10-27

github.com

Before it fills your prompt, Otty checks the installed safety against its version. A form that does not match your version is not offered.