# Installation

## Prebuilt binary

Each release on GitHub ships binaries for Linux (x86-64), macOS (Apple
silicon and Intel) and Windows (x86-64), a `SHA256SUMS` file and two install
scripts that check the download against it before installing.

Linux and macOS (installs to `~/.local/bin`):

```sh
curl -fsSL https://github.com/osintambition/spiderfootplus/releases/latest/download/install.sh | sh
```

Windows PowerShell (installs to `%LOCALAPPDATA%\Programs\spiderfootplus` and
adds it to your user PATH):

```powershell
irm https://github.com/osintambition/spiderfootplus/releases/latest/download/install.ps1 | iex
```

Set `SPIDERFOOTPLUS_VERSION=v0.5.0` to install a specific release, or
`SPIDERFOOTPLUS_INSTALL_DIR` to choose the folder.

## With Cargo

```sh
cargo install --locked --git https://github.com/osintambition/spiderfootplus spiderfootplus-cli
```

## Docker

```sh
docker run --rm -v "$PWD:/data" ghcr.io/osintambition/spiderfootplus scan example.com -p quick
```

The scan database and reports are written to the mounted folder.

## From source

You need Rust 1.80 or newer ([rustup.rs](https://rustup.rs)).

```sh
git clone https://github.com/osintambition/spiderfootplus
cd spiderfootplus
cargo build --release -p spiderfootplus-cli
./target/release/spiderfootplus --help
```

On Windows, call the binary with a leading `.\`:

```powershell
.\target\release\spiderfootplus.exe --help
```

The default build is a single binary with no runtime dependencies.

## Optional: legacy module runtime

Hundreds of community modules are written in Python. To run them while they are
being ported to native Rust, build with the `legacy` feature (needs Python 3.10+
and headers):

```sh
pip install -r modules/requirements.txt
cargo build --release -p spiderfootplus-cli --features legacy
./target/release/spiderfootplus --legacy modules/legacy scan example.com
```

## Verify

```sh
spiderfootplus modules      # list modules
spiderfootplus providers    # list data providers and their status
spiderfootplus rules        # list correlation rules
```
