nx/docs/shared/recipes/running-tasks/skipping-cache.md
Juri Strumpflohner e0c0548f5e docs(core): fix typo
Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>
2024-08-08 11:06:04 -07:00

32 lines
879 B
Markdown

# Skip Task Caching
There are times when you might want to bypass the [caching mechanism](/features/cache-task-results), either locally or remotely.
## Skip Caching
To skip caching for a specific task, use the `--skip-nx-cache` flag. This can be useful when you want to ensure that a task runs fresh, without using cached results.
```shell
npx nx build --skip-nx-cache
```
This will avoid using any local or remote cache.
## Skip Remote Caching from Nx Cloud
To skip remote caching provided by Nx Cloud, use the `--no-cloud` flag. This ensures that the task does not use cached results from Nx Cloud.
```shell
npx nx build --no-cloud
```
It will **still use the local cache if available**.
## Reset
To clear the cache and metadata about the workspace and shuts down the Nx Daemon you can use the [reset](/nx-api/nx/documents/reset) command:
```shell
npx nx reset
```