Installation - Pretorin CLI Documentation
Description: Documentation for the Pretorin CLI - compliance tools for developers and AI agents.

## Keyboard shortcuts

Press `←` or `→` to navigate between chapters

Press `S` or `/` to search in the book

Press `?` to show this help

Press `Esc` to hide this help

# Installation

Pretorin CLI requires Python 3.10 or later.

## Recommended: uv

uv installs the CLI as an isolated tool with its own dependencies:

    uv tool install pretorin

## pip

    pip install pretorin

## pipx

pipx provides isolated installation similar to uv:

    pipx install pretorin

## Docker

A Dockerfile and Docker Compose configuration are included in the repository:

    git clone https://github.com/pretorin-ai/pretorin-cli.git
    cd pretorin-cli
    docker compose up

## Verify Installation

    pretorin version

Expected output:

    pretorin version 0.8.1

## Updating

Check for and install the latest version:

    pretorin update

The CLI also checks for updates automatically on startup and notifies you when a new version is available. To disable passive update notifications:

    export PRETORIN_DISABLE_UPDATE_CHECK=1
    # or
    pretorin config set disable_update_check true

## Development Installation

For contributing to Pretorin CLI:

    git clone https://github.com/pretorin-ai/pretorin-cli.git
    cd pretorin-cli
    uv pip install -e ".[dev]"

This installs the package in editable mode with development dependencies (pytest, ruff, mypy, etc.).