> For the complete documentation index, see [llms.txt](https://docs.safetycli.com/safety-2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.safetycli.com/safety-2/safety-2.x-basics/running-a-safety-scan.md).

# 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.
