HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

turbo — High-performance build system for JavaScript and TypeScript codebases. See also: `nx`. More informat

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandbuildclihighperformanceforturbosystem

Problem

How to use the turbo command: High-performance build system for JavaScript and TypeScript codebases. See also: nx. More information: <https://turborepo.com/docs/reference>.

Solution

turbo — High-performance build system for JavaScript and TypeScript codebases. See also: nx. More information: <https://turborepo.com/docs/reference>.

Log in using the default web browser with a Vercel account:
turbo login


Link the current directory to a Vercel organization and enable remote caching:
turbo link


Build the current project:
turbo run build


Run a task without concurrency:
turbo run {{task_name}} --concurrency={{1}}


Run a task ignoring cached artifacts and forcibly re-execute all tasks:
turbo run {{task_name}} --force


Run a task in parallel across packages:
turbo run {{task_name}} --parallel --no-cache


Unlink the current directory from your Vercel organization and disable Remote Caching:
turbo unlink


Generate a Dot graph of a specific task execution (the output file format can be controlled with the filename):
turbo run {{task_name}} --graph={{path/to/file.html|jpg|json|pdf|png|svg}}

Code Snippets

Log in using the default web browser with a Vercel account

turbo login

Link the current directory to a Vercel organization and enable remote caching

turbo link

Build the current project

turbo run build

Run a task without concurrency

turbo run {{task_name}} --concurrency={{1}}

Run a task ignoring cached artifacts and forcibly re-execute all tasks

turbo run {{task_name}} --force

Context

tldr-pages: common/turbo

Revisions (0)

No revisions yet.