reset
Clears cached Nx artifacts and metadata about the workspace and shuts down the Nx onlyDaemon.
Usage
❯
nx reset
Install nx
globally to invoke the command directly using nx
, or use npx nx
, yarn nx
, or pnpm nx
.
Examples
Clears the internal state of the daemon and metadata that Nx is tracking. Helpful if you are getting strange errors and want to start fresh:
❯
nx reset
Clears all the cached Nx artifacts and metadata about the workspace and shuts down the Nx Daemon:
❯
nx reset
Clears the Nx Cache directory. This will remove all local cache entries for tasks, but will not affect the remote cache:
❯
nx reset --only-cache
Stops the Nx Daemon to reset its internal state:
❯
nx reset --only-daemon
Clears the workspace data directory. Used by Nx to store cached data about the current workspace (e.g. project graph construction, etc):
❯
nx reset --only-workspace-data
Options
help
Type: boolean
Show help
onlyCache
Type: boolean
Clears the Nx onlyCache directory. This will remove all local onlyCache entries for tasks, but will not affect the remote onlyCache.
onlyDaemon
Type: boolean
Stops the Nx Daemon to reset its internal state.
onlyWorkspaceData
Type: boolean
Clears the workspace data directory. Used by Nx to store cached data about the current workspace (e.g. project graph construction, etc)
version
Type: boolean
Show version number