Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

cli.md

52 lines5.9 KB

1# CLI reference (`t3`)
2​
3The `t3` command runs and manages T3 Code servers, background services, remote access, threads, workflows, and diagnostics. Run `t3 --help` or `t3 <command> --help` for full flags.
4​
5See [Install T3 Code](./install.md#command-line) for installation (`curl -fsSL https://t3.codes/install.sh | sh`, `irm https://t3.codes/install.ps1 | iex`, or `npx t3@latest`).
6​
7## Running and connecting
8​
9| Command | Description |
10| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
11| `t3 [path]` / `t3 start` | Start a foreground server and open the web app (optionally in a project directory). |
12| `t3 serve` | Start the server without opening a browser (`--lan`, `--tailscale-serve`, `--host`, `--port`, `--base-dir`). |
13| `t3 app [path]` | Open a directory as a project/thread in the running desktop app. |
14| `t3 up` | Interactive setup for remote access (T3 Connect and/or LAN) plus background service (`--connect`, `--lan`, `--no-lan`, `--yes`). |
15| `t3 connect` | Manage T3 Connect (`t3 connect`, `status`, `login`, `logout`, `link`, `unlink`). |
16| `t3 status` | Show how other devices can reach this host (`--json`). |
17| `t3 pair` | Generate a one-time pairing URL / QR code (`--tailscale`, `--scope <scope>`). |
18​
19## Background service and updates
20​
21| Command | Description |
22| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
23| `t3 service` | Manage the background service (`install`, `status`, `restart`, `uninstall`, `protect [--undo]`). See [Background service](./background-service.md). |
24| `t3 update [version]` | Update `t3` and the service (`--channel nightly`, `--allow-downgrade`, `--yes`). |
25| `t3 install` / `t3 uninstall` | Install or remove the `t3` launcher and background service (keeps `~/.t3/userdata`). |
26​
27## Threads, projects, and workflows
28​
29| Command | Description |
30| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
31| `t3 thread` | Script threads on the host (`start`, `send`, `show`, `list`; supports `--wait`, `--json`, `--worktree`, `--provider`, `--model`, `--option`). See [Host scripts](./outside-agents.md#host-scripts-t3-thread). |
32| `t3 project` | Manage projects on the host (e.g. `t3 project add <path> --track <folder>`). |
33| `t3 workflow` | Start and steer durable workflows (`start`, `list`, `show`, `resume`, `cancel`, `questions`, `signal`, `withdraw`, `hooks`, `store`). See [Workflows](./workflows.md). |
34​
35## Environments, auth, themes, and policy
36​
37| Command | Description |
38| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
39| `t3 environment` | Link or manage peer environments (`t3 environment link <addr> --pairing-code <code> --access <mode>`, `--from <file>`). |
40| `t3 auth` | Manage pairing codes, sessions, and T3 Connect device approvals (`pairing create`, `session list/revoke/issue`, `connect-device list/approve/revoke`). |
41| `t3 theme` | Manage server-published themes (`set <id>`, `clear`, `show`). See [Appearance](./appearance.md#environment-themes). |
42| `t3 policy` | Validate, inspect, and generate MDM/GPO templates for [managed policies](./managed-policy.md) (`check`, `show`, `settings`, `templates`). |
43​
44## Diagnostics and maintenance
45​
46| Command | Description |
47| ------------------ | ---------------------------------------------------------------------------------------------------------- |
48| `t3 doctor` | Inspect database size and reclaim disk space (`--dry-run`, `--fix`). |
49| `t3 browser setup` | One-time Linux host setup (AppArmor sandbox profile, libraries, fonts) for the headless preview browser. |
50| `t3 trace summary` | Summarize local server trace latency and errors (`--since 30m`, `--limit 50`). |
51| `t3 triage` | Launch Claude Code, Codex, or Antigravity in your terminal with the T3 triage playbook. |
52| `t3 feedback` | Send or inspect agent feedback reports (`list [--json]`, `--kind`, `--subject`, `--expected`, `--actual`). |