Safety 2 (formerly PyUp)
  • Welcome to Safety 2
  • 2023 Rebrand from PyUp to Safety Cybersecurity
  • Safety 2.x Basics
    • Getting started with Safety 2.x
    • Running a Safety Scan
    • License Scanning
  • Safety CLI 2 Scanner
    • Installation & Quick Start - Safety 2
    • Docker Containers
    • Inputs
    • Output Formats
    • Policy File
    • Applying Security Updates to Requirements Files
    • Exit Codes
    • Help and Support
    • Safety v1 to v2 Breaking Changes
  • Securing Git SCM Pipelines
    • Securing Git Repositories
    • GitHub Actions
      • Advanced Options: GitHub Actions
    • BitBucket Pipelines
    • Gitlab Pipelines
    • GitHub Integration
    • Scanning Development Environments with Git Post-Commit Hook
  • Troubleshooting
    • Invalid API Key Error
Powered by GitBook
On this page
  1. Safety 2.x Basics

Running a Safety Scan

Installing Safety and running your first security scan is easy.

📝 Run your first security scan

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.

PreviousGetting started with Safety 2.xNextLicense Scanning

Last updated 1 year ago