Back to Turborepo

Options overview

apps/docs/content/docs/reference/options-overview.mdx

2.9.1717.0 KB
Original Source

There are three ways to manage the behavior of a turbo invocation:

The three strategies listed above are in order of precedence. Where a flag value is provided, for the same System Environment Variable or turbo.json configuration, the value for the flag will be used. Because of this, we recommend using:

  • turbo.json configuration for defaults
  • System Environment Variables for per-environment overrides
  • Flags for per-invocation overrides

Options table

Caching

<div className="options-cheat-sheet-table">
BehaviorFlagsEnvironment Variablesturbo.json
Force tasks to run--forceTURBO_FORCEcache
Remote Cache timeout--remote-cache-timeoutTURBO_REMOTE_CACHE_TIMEOUTremoteCache.timeout
Remote Cache upload timeout-TURBO_REMOTE_CACHE_UPLOAD_TIMEOUTremoteCache.uploadTimeout
Cache signature key-TURBO_REMOTE_CACHE_SIGNATURE_KEYsignature
Preflight request--preflightTURBO_PREFLIGHTremoteCache.preflight
Remote Cache base URL-TURBO_APIremoteCache.apiUrl
Cache sources--cacheTURBO_CACHE-
Local cache directory--cache-dirTURBO_CACHE_DIRcacheDir
Local cache max age-TURBO_CACHE_MAX_AGEcacheMaxAge
Local cache max size-TURBO_CACHE_MAX_SIZEcacheMaxSize
</div>

Messages

<div className="options-cheat-sheet-table">
BehaviorFlagsEnvironment Variablesturbo.json
Disable version print-TURBO_PRINT_VERSION_DISABLED-
Disable telemetry message-TURBO_TELEMETRY_MESSAGE_DISABLED-
Disable global turbo warning-TURBO_GLOBAL_WARNING_DISABLED-
No update notifier-TURBO_NO_UPDATE_NOTIFIERnoUpdateNotifier
</div>

Task running and logs

<div className="options-cheat-sheet-table">
BehaviorFlagsEnvironment Variablesturbo.json
Terminal UI--uiTURBO_UIui
Run affected tasks--affected--
Disable package manager check--dangerously-disable-package-manager-checkTURBO_DANGEROUSLY_DISABLE_PACKAGE_MANAGER_CHECKdangerouslyDisablePackageManagerCheck
Affected base ref-TURBO_SCM_BASE-
Affected head ref-TURBO_SCM_HEAD-
Only run directly specified tasks--only--
Task concurrency--concurrencyTURBO_CONCURRENCY-
Task log order--log-orderTURBO_LOG_ORDER-
Current working directory--cwd--
Streamed logs prefix--log-prefix--
Task logs output level--output-logs-option-outputLogs
Global inputs--global-deps-globalDependencies
Terminal colors--colorFORCE_COLOR-
</div>

Environment variables

<div className="options-cheat-sheet-table">
BehaviorFlagsEnvironment Variablesturbo.json
Environment variable mode--env-mode-envMode
Vendor environment variables-TURBO_CI_VENDOR_ENV_KEY-
Framework variable exceptions--framework-inference--
</div>

Debugging outputs

<div className="options-cheat-sheet-table">
BehaviorFlagsEnvironment Variablesturbo.json
Run Summaries--summarizeTURBO_RUN_SUMMARY-
Graph visualization--graph--
Dry run--dry--
</div>

Authentication

<div className="options-cheat-sheet-table">
BehaviorFlagsEnvironment Variablesturbo.json
Login URL-TURBO_LOGINremoteCache.loginUrl
Team name (for multi-team Remote Cache)--teamTURBO_TEAM-
Team ID (for multi-team Remote Cache)-TURBO_TEAMID-
Authentication token--tokenTURBO_TOKEN-
</div>

Other

<div className="options-cheat-sheet-table">
BehaviorFlagsEnvironment Variablesturbo.json
Binary path-TURBO_BINARY_PATH-
Download local turbo-TURBO_DOWNLOAD_LOCAL_ENABLED-
Daemon (deprecated)--daemon / --no-daemon-daemon
</div>