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

cli.md

52 lines5.9 KB

CLI reference (t3)

The 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.

See Install T3 Code for installation (curl -fsSL https://t3.codes/install.sh | sh, irm https://t3.codes/install.ps1 | iex, or npx t3@latest).

Running and connecting

CommandDescription
t3 [path] / t3 startStart a foreground server and open the web app (optionally in a project directory).
t3 serveStart the server without opening a browser (--lan, --tailscale-serve, --host, --port, --base-dir).
t3 app [path]Open a directory as a project/thread in the running desktop app.
t3 upInteractive setup for remote access (T3 Connect and/or LAN) plus background service (--connect, --lan, --no-lan, --yes).
t3 connectManage T3 Connect (t3 connect, status, login, logout, link, unlink).
t3 statusShow how other devices can reach this host (--json).
t3 pairGenerate a one-time pairing URL / QR code (--tailscale, --scope <scope>).

Background service and updates

CommandDescription
t3 serviceManage the background service (install, status, restart, uninstall, protect [--undo]). See Background service.
t3 update [version]Update t3 and the service (--channel nightly, --allow-downgrade, --yes).
t3 install / t3 uninstallInstall or remove the t3 launcher and background service (keeps ~/.t3/userdata).

Threads, projects, and workflows

CommandDescription
t3 threadScript threads on the host (start, send, show, list; supports --wait, --json, --worktree, --provider, --model, --option). See Host scripts.
t3 projectManage projects on the host (e.g. t3 project add <path> --track <folder>).
t3 workflowStart and steer durable workflows (start, list, show, resume, cancel, questions, signal, withdraw, hooks, store). See Workflows.

Environments, auth, themes, and policy

CommandDescription
t3 environmentLink or manage peer environments (t3 environment link <addr> --pairing-code <code> --access <mode>, --from <file>).
t3 authManage pairing codes, sessions, and T3 Connect device approvals (pairing create, session list/revoke/issue, connect-device list/approve/revoke).
t3 themeManage server-published themes (set <id>, clear, show). See Appearance.
t3 policyValidate, inspect, and generate MDM/GPO templates for managed policies (check, show, settings, templates).

Diagnostics and maintenance

CommandDescription
t3 doctorInspect database size and reclaim disk space (--dry-run, --fix).
t3 browser setupOne-time Linux host setup (AppArmor sandbox profile, libraries, fonts) for the headless preview browser.
t3 trace summarySummarize local server trace latency and errors (--since 30m, --limit 50).
t3 triageLaunch Claude Code, Codex, or Antigravity in your terminal with the T3 triage playbook.
t3 feedbackSend or inspect agent feedback reports (list [--json], --kind, --subject, --expected, --actual).