turbo
High-performance monorepo build system
TLDR
SYNOPSIS
turbo command [--filter pattern] [options]
DESCRIPTION
Turborepo is a high-performance build system for JavaScript and TypeScript monorepos. It executes tasks like build, test, and lint across multiple packages while respecting inter-package dependencies and maintaining topological order automatically.The tool uses content-aware hashing to cache task outputs, skipping work when inputs haven't changed. This caching works locally and can be shared across a team via remote caching, so developers don't rebuild what others have already built. The --filter flag targets specific packages for focused development.Configuration is defined in turbo.json at the repository root, specifying task dependencies and caching behavior. The --graph flag visualizes the dependency structure, and prune creates minimal subsets of the monorepo for efficient deployment.
PARAMETERS
run TASKS
Run specified tasks across packages.prune package
Create pruned subset of monorepo for a target package.-F, --filter PATTERN
Filter packages by name, directory, or git changes.--affected
Run only in packages changed since the base branch.--continue
Continue on error (never, dependencies-successful, always).--graph file
Output dependency graph (svg, html, mermaid, dot).--force
Bypass cache and re-execute all tasks.--dry
Display tasks without executing.--cache-dir DIR
Set filesystem cache directory.--concurrency num
Limit parallel task execution (number or percentage).
CAVEATS
Requires turbo.json config. Monorepo setup needed. The --parallel and --scope flags are deprecated; use --filter and task configuration instead.
HISTORY
Turborepo was created by Jared Palmer and acquired by Vercel in 2021. It focuses on making monorepo development fast.
