# CLI reference (`fide`)

The `fide` command runs and manages Fide servers, background services, remote access, threads, workflows, and diagnostics. Run `fide --help` or `fide <command> --help` for full flags.

See [Install Fide](/docs/install#command-line) for installation (`curl -fsSL https://fide.work/install.sh | sh`, `irm https://fide.work/install.ps1 | iex`, or `npx fide@latest`).

## Running and connecting

| Command                  | Description                                                                                                                      |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
| `fide [path]` / `fide start` | Start a foreground server and open the web app (optionally in a project directory).                                              |
| `fide serve`               | Start the server without opening a browser (`--lan`, `--tailscale-serve`, `--host`, `--port`, `--base-dir`).                     |
| `fide app [path]`          | Open a directory as a project/thread in the running desktop app.                                                                 |
| `fide up`                  | Interactive setup for remote access (Fide Connect and/or LAN) plus background service (`--connect`, `--lan`, `--no-lan`, `--yes`). |
| `fide connect`             | Manage Fide Connect (`fide connect`, `status`, `login`, `logout`, `link`, `unlink`).                                                 |
| `fide status`              | Show how other devices can reach this host (`--json`).                                                                           |
| `fide pair`                | Generate a one-time pairing URL / QR code (`--tailscale`, `--scope <scope>`).                                                    |

## Background service and updates

| Command                       | Description                                                                                                                                         |
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fide service`                  | Manage the background service (`install`, `status`, `restart`, `uninstall`, `protect [--undo]`). See [Background service](/docs/background-service). |
| `fide update [version]`         | Update `fide` and the service (`--channel nightly`, `--allow-downgrade`, `--yes`).                                                                    |
| `fide install` / `fide uninstall` | Install or remove the `fide` launcher and background service (keeps `~/.t3/userdata`).                                                                |

## Threads, projects, and workflows

| Command       | Description                                                                                                                                                                                                   |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fide thread`   | Script threads on the host (`start`, `send`, `show`, `list`; supports `--wait`, `--json`, `--worktree`, `--provider`, `--model`, `--option`). See [Host scripts](/docs/outside-agents#host-scripts-fide-thread). |
| `fide project`  | Manage projects on the host (e.g. `fide project add <path> --track <folder>`).                                                                                                                                  |
| `fide workflow` | Start and steer durable workflows (`start`, `list`, `show`, `resume`, `cancel`, `questions`, `signal`, `withdraw`, `hooks`, `store`). See [Workflows](/docs/workflows).                                        |

## Environments, auth, themes, and policy

| Command          | Description                                                                                                                                            |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `fide environment` | Link or manage peer environments (`fide environment link <addr> --pairing-code <code> --access <mode>`, `--from <file>`).                                |
| `fide auth`        | Manage pairing codes, sessions, and Fide Connect device approvals (`pairing create`, `session list/revoke/issue`, `connect-device list/approve/revoke`). |
| `fide theme`       | Manage server-published themes (`set <id>`, `clear`, `show`). See [Appearance](/docs/appearance#environment-themes).                                    |
| `fide policy`      | Validate, inspect, and generate MDM/GPO templates for [managed policies](/docs/managed-policy) (`check`, `show`, `settings`, `templates`).              |

## Diagnostics and maintenance

| Command            | Description                                                                                                |
| ------------------ | ---------------------------------------------------------------------------------------------------------- |
| `fide doctor`        | Inspect database size and reclaim disk space (`--dry-run`, `--fix`).                                       |
| `fide browser setup` | One-time Linux host setup (AppArmor sandbox profile, libraries, fonts) for the headless preview browser.   |
| `fide trace summary` | Summarize local server trace latency and errors (`--since 30m`, `--limit 50`).                             |
| `fide triage`        | Launch Claude Code, Codex, or Antigravity in your terminal with the Fide triage playbook.                    |
| `fide feedback`      | Send or inspect agent feedback reports (`list [--json]`, `--kind`, `--subject`, `--expected`, `--actual`). |
