Skip to content

There are times when you might want to bypass the caching mechanism, either locally or remotely.

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.

npx nx build --skip-nx-cache

This will avoid using any local or remote cache.

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.

npx nx build --no-cloud

It will still use the local cache if available.

To clear the cache and metadata about the workspace and shuts down the Nx Daemon you can use the reset command:

npx nx reset