Running a Safety Scan
Installing Safety and running your first security scan is easy.
Running your first scan in the command line only takes a few seconds.
Open up your command line / terminal interface and navigate to the Python repository or codebase you want to run a security scan on.
Download our Safety CLI from PyPi:
// pip install safety
Run the security scan using Safety. You can find your API key on your account dashboard when you create an account or log into Safety.
// safety check --key <your_api_key>
In this example, Safety is scanning your local Python environment for every package or dependency that is installed and checking it against our industry-leading Python Dependency Vulnerability database.