# Installation & Quick Start - Safety 2

{% hint style="info" %}
**Existing Customers: Upgrade to Safety 3.0**

Safety 3.0 is now available, providing system-wide scanning, unpinned package support, new SBOM and JSON output formats, and more.&#x20;
{% endhint %}

Safety 2 is the previous iteration of our industry-leading Python dependency scanner. Safety is the best way to check your Python dependencies for security vulnerabilities and other compliance risks. It's our swiss-army knife tool that can be used in a variety of ways and situations, from securing developer machines, to build pipelines and production systems.

### Installation

Safety is available for [download from PyPi](https://pypi.org/project/safety/). You can install Safety CLI directly from PyPi using the following pip command:

`pip install safety`

### Getting started

Once install, you can run a vulnerability scan on your Python dependencies in your current environment.

`safety check --key <YOUR-API-KEY>`

Or scan the dependencies in a particular requirements file:

`safety check -r requirements.txt --key <YOUR-API-KEY>`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.safetycli.com/safety-2/safety-cli-2-scanner/installation-and-quick-start-safety-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
