LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

turbo

High-performance monorepo build system

TLDR

Run task
$ turbo run [build]
copy
Run multiple tasks
$ turbo run [build] [test]
copy
Run with filter
$ turbo run [build] --filter=[package-name]
copy
Run in parallel
$ turbo run [build] --parallel
copy
Continue on error
$ turbo run [build] --continue
copy
Show dependency graph
$ turbo run [build] --graph
copy
Prune for deployment
$ turbo prune [app]
copy
Prune with Docker-optimized output
$ turbo prune [app] --docker
copy
Bypass cache and re-execute
$ turbo run [build] --force
copy

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.

SEE ALSO

npm(1), yarn(1), pnpm(1), nx(1)

Copied to clipboard
Kai