Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: add references to TURBO_CACHE_DIR environment variable #7632

Merged
merged 6 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Defaults to `./node_modules/.cache/turbo`. Specify local filesystem cache direct
turbo run build --cache-dir="./my-cache"
```

The same behavior can also be set via the `TURBO_CACHE_DIR=./my-cache` environment variable.

### `--concurrency`

`type: number | string`
Expand Down Expand Up @@ -172,7 +174,7 @@ Ignore existing cached artifacts and forcibly re-execute all tasks (overwriting
turbo run build --force
```

The same behavior also be set via the `TURBO_FORCE=true` environment variable.
The same behavior can also be set via the `TURBO_FORCE=true` environment variable.

### `--global-deps`

Expand Down
1 change: 1 addition & 0 deletions docs/pages/repo/docs/reference/system-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ By setting certain environment variables, you can change Turborepo's behavior. T
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `TURBO_API` | Set the base URL for [Remote Cache](/repo/docs/core-concepts/remote-caching). |
| `TURBO_BINARY_PATH` | Manually set the path to the `turbo` binary. By default, `turbo` will automatically discover the binary so you should only use this in extremely rare circumstances. |
| `TURBO_CACHE_DIR` | Sets the cache directory, similarly to calling `--cache-dir`-argument |
| `TURBO_CI_VENDOR_ENV_KEY` | Set a prefix for environment variables that you want **excluded** from [Framework Inference](/repo/docs/core-concepts/caching/environment-variable-inputs#framework-inference). |
| `TURBO_FORCE` | Always force all tasks in your pipelines to run in full, opting out of all caching. |
| `TURBO_LOG_ORDER` | Set the [log order](https://turbo.build/repo/docs/reference/command-line-reference/run#--log-order) for your pipeline's logs. Allowed values are `grouped` and `default`. |
Expand Down