# Binary Download

> Download pre-built Trident binaries directly without a package manager for any supported platform.

Download pre-built binaries directly from GitHub Releases. This works on any supported platform without a package manager.

<Admonition type="info" title="Tested">
Binary installation is tested end-to-end on **Debian 12 (slim)** using automated integration tests that verify binaries, caching behavior, and graceful shutdown.
</Admonition>

## Quick Install Script

The install script auto-detects your platform and downloads the correct binary:

```bash
curl -sSL https://get.trident-cache.com/install.sh | sh
```

### Options

| Flag              | Description                                     | Default       |
|-------------------|-------------------------------------------------|---------------|
| `--prefix DIR`    | Installation directory                           | `/usr/local`  |
| `--version VER`   | Install a specific version (e.g., `v1.0.0`)     | latest        |
| `--with-service`  | Also install systemd service and default config  | off           |

Example with all options:

```bash
curl -sSL https://get.trident-cache.com/install.sh | sh -s -- \
  --prefix /opt/trident \
  --version v1.0.0 \
  --with-service
```

The `--with-service` flag will:

- Install the default config to `/etc/trident/config.toml` (if not already present)
- Install the systemd unit file
- Create a `trident` system user and group
- Create `/var/lib/trident` and `/var/log/trident` directories

## Manual Download

Download the archive for your platform from [GitHub Releases](https://github.com/qoliber/trident/releases):

| Platform       | Archive                          |
|----------------|----------------------------------|
| Linux x64      | `trident-linux-x64.tar.gz`       |
| Linux ARM64    | `trident-linux-arm64.tar.gz`     |
| macOS x64      | `trident-macos-x64.tar.gz`       |
| macOS ARM64    | `trident-macos-arm64.tar.gz`     |
| Windows x64    | `trident-windows-x64.zip`        |

Extract and install:

```bash
tar -xzf trident-linux-x64.tar.gz
sudo install -m 0755 trident /usr/local/bin/
sudo install -m 0755 trident-cli /usr/local/bin/
```

## Verify Installation

```bash
trident --version
trident-cli --version
```

## Next Steps

- [Configuration](https://docs.qoliber.com/docs/trident/configuration) -- create your `config.toml`
- [Service Management](https://docs.qoliber.com/docs/trident/service) -- set up a systemd or rc.d service
