---
title: "CLI reference"
description: "A release-pinned index of public AIF commands, organized by the workflow they support."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.harden.run/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI reference

Use `aif <command> --help` for flags and examples in your installed release.

## Get started

| Command | Use it to |
| --- | --- |
| `aif install-self` | Install this AIF binary and keep the prior version for rollback. |
| `aif configure` | Set up AIF protection for coding agents on this device. |
| `aif demo` | Run the built-in realistic protection session. |
| `aif show` | Open the local dashboard. |
| `aif status` | Check protection, the local model, and activity history. |

## Run the local service

| Command | Use it to |
| --- | --- |
| `aif start` | Start AIF protection on the local loopback service. |
| `aif stop` | Stop AIF; protected agent actions pause until it starts again. |
| `aif serve` | Run the local AIF service. |
| `aif update` | Update AIF and its local model while keeping a rollback version. |
| `aif rollback` | Return to the previously installed AIF version. |
| `aif latency` | Measure how quickly AIF reviews agent actions. |
| `aif shadow` | Review local-model results without changing AIF decisions. |

## Review and investigate

| Command | Use it to |
| --- | --- |
| `aif review` | Review actions AIF paused for approval. |
| `aif replay` | Check whether this version handles previously blocked actions differently. |
| `aif export` | Export locally recorded decisions with required consent, redaction, and attestation. |
| `aif store` | Manage local activity history. |
| `aif doctor` | Check the installation and explain how to fix problems. |
| `aif appeal` | Send a captured decision to AIF for investigation. |
| `aif issue` | File a bug or coverage request on the public issue tracker. |

## Handle protected values

| Command | Use it to |
| --- | --- |
| `aif filter` | Remove secret-like values from standard input. |
| `aif tokenize` | Replace known secrets in input with safe AIF placeholders. |
| `aif enroll` | Register a secret safely and choose where it may be sent. |
| `aif expand` | Use a protected secret for an approved destination. |

## Integrate and configure

| Command | Use it to |
| --- | --- |
| `aif mcp` | Connect supported MCP tools to AIF protection. |
| `aif mcp-proxy` | Protect agent actions sent through an MCP server. |
| `aif trace` | Convert agent activity into AIF trace data. |
| `aif config` | View or change AIF settings. |
| `aif telemetry` | Review anonymous operational data AIF may send. |
| `aif profile` | Review or send optional product feedback and device information. |
| `aif completion` | Generate shell autocompletion. |
| `aif help` | Show help for AIF or a particular command. |

Source: https://docs.harden.run/reference/cli/index.mdx
