Safety supports Python versions >=3.7. Further details on supported versions, as well as options to run Safety CLI on versions <3.7 using a Docker image are available in our Documentation Hub.
Step 1
# Run this command in your terminal to install Safety
pip install safety
Step 2
# Register for a free account via the CLI or via
# https://platform.safetycli.com/register
safety auth login
Step 3
# Using the Terminal, navigate to a project, e.g. cd my/project/.
safety scan
Step 4
#Clear, Actionable Recommendations:
Dependency vulnerabilities detected:
jinja2==3.1.4 [1 vulnerability found]
-> Vuln ID 74735:
A vulnerability in the Jinja compiler allows an attacker who can
control both the content and filename of a te...
Update jinja2==3.1.4 to jinja2==3.1.5 to fix 1 vulnerability
View Scan Results: https://platform.safetycli.com/
Step 5
Stop supply chain attacks at the source. Safety Firewall prevents the installation of malicious, vulnerable, and non-compliant open-source dependencies.