LinuxCommandLibrary

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 --scope=[app]
copy
Clean cache
$ 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 tasks.
prune
Create subset.
--filter PATTERN
Filter packages.
--parallel
Parallel execution.
--continue
Continue on error.
--graph
Dependency graph.
--force
Bypass cache.
--cache-dir DIR
Cache directory.

CAVEATS

Requires turbo.json config. Monorepo setup needed. Cache strategy matters.

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), nx(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community