← Back to CLIs
Melvynx

turbo

Turborepo CLI - run tasks across monorepo packages, prune dependencies, generate packages. Use when user mentions 'turbo', 'turborepo', 'monorepo build', or wants to manage a Turborepo monorepo.

Install

$ npx api2cli install turbo

Details

Skill type: Official CLI
Auth type: bearer
Version: 1.0.0
Author: Melvynx
Views: 0

README

turbo

Setup

npm i -g turbo

Verify installation:

turbo --version

Requires a turbo.json configuration file in the project root.

Authentication

turbo login

Link to a Vercel team for remote caching:

turbo link

Resources

Running Tasks

CommandDescription
turbo run buildRun build task across all packages
turbo run testRun test task across all packages
turbo run lintRun lint task across all packages
turbo run build test lintRun multiple tasks
turbo run build --filter=<package>Run task for a specific package
turbo run build --filter=<package>...Run task for a package and its dependencies
turbo run build --filter=...<package>Run task for a package and its dependents
turbo run build --filter='[HEAD~1]'Run task only for changed packages
turbo run build --dry-runPreview which tasks would run
turbo run build --graphGenerate a task dependency graph
turbo run build --forceForce execution, ignoring cache
turbo run build --concurrency=4Limit parallel task execution
turbo run build --continueContinue running even if a task fails

Pruning

CommandDescription
turbo prune <package>Generate a sparse monorepo for a specific package
turbo prune <package> --dockerGenerate pruned output optimized for Docker

Code Generation

CommandDescription
turbo genRun a generator
turbo gen workspaceGenerate a new workspace package
turbo gen workspace --name <name>Generate a named workspace package

Daemon

CommandDescription
turbo daemon statusShow daemon status
turbo daemon startStart the turbo daemon
turbo daemon stopStop the turbo daemon

Remote Caching

CommandDescription
turbo loginLogin to remote cache provider
turbo linkLink project to remote cache
turbo unlinkUnlink project from remote cache

Global Flags

FlagDescription
--filter=<pattern>Filter packages to run tasks on
--forceIgnore cache and force execution
--dry-runPreview tasks without executing
--concurrency=<n>Set max parallel tasks
--graphGenerate a dependency graph
--output-logs=<mode>Control log output (full, hash-only, new-only, none)
--env-mode=<mode>Control environment variable handling (strict, loose)
Sponsors