Turborepo CLI
$ turbo Official Low RiskHigh-speed monorepo build system written in Rust for JavaScript and TypeScript workspaces. Offers turbo run <task> --dry=json to inspect task graphs and cache hashes without running tasks, plus --ui=stream for clean agent logs.
brew install turbo Executes local workspace builds, tests, and cache lookups directly; MCP cannot replace local task execution.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Native --dry=json, turbo ls --output=json, --ui=stream, and NO_COLOR=1 prevent TUI glitches and give crisp machine-readable plans.
turbo run <task> --dry=jsonemits full task-graph JSON--ui=streamforces non-TUI line output
Read-only --dry=json introspection and isolated .turbo local caching with explicit opt-in for remote caching.
- Zero remote calls unless
TURBO_TOKENis explicitly configured
Rust binary distributed cleanly via npm, npx, and Homebrew across macOS, Linux, and Windows.
- Fast native Rust executable with zero JVM/Python overhead
Content-hashed caching and --affected filtering accelerate iterative agent test/build loops.
- Supports
--affectedand--filter=<pkg>task scoping
Official Vercel CLI maintained under MPL-2.0 with rapid releases.
- First-party
vercel/turboreporepository
Clear, concise CLI reference at turborepo.com/docs/reference.
- Complete flag and
turbo.jsonreference docs
Security, Auth & Guardrails
Local runs require no auth; remote caching uses TURBO_TOKEN + TURBO_TEAM env vars or Vercel config under ~/.config/turbo/.
MPL-2.0 open-source CLI and local caching are free; optional Vercel Remote Cache has free and paid tiers.
# Turborepo CLI (turbo) Agent Rules - Always pass `--ui=stream` (or set `CI=true`) so `turbo` does not launch its interactive TUI. - Use `turbo run <task> --dry=json` to inspect task graphs and cache misses before running heavy builds.
Agent-Ready Command Recipes
Safe Read-Only Queries
turbo run build --dry=json
Computes affected packages, task dependencies, and cache hit/miss hashes in JSON without executing builds.
turbo ls --output=json
Outputs discovered workspace package names and paths in JSON.
Controlled Writes & Previews
turbo run test --ui=stream --no-color
Runs workspace tests without the interactive TUI progress box.
Strengths for Agents
- +
--dry=jsonexposes exact task dependencies, inputs, and cache miss reasons in JSON. - +
--ui=streamdisables the interactive TUI cleanly for agent terminals. - + Fast Rust implementation with
--filterand--affectedscoping.
Caveats & Pitfalls
- ! Without
--ui=streamorCI=true,turbodefaults to an interactive terminal UI in TTYs. - ! Task execution stdout itself is streamed text rather than structured JSON.