Clears all the cached Nx artifacts and metadata about the workspace.
nx clear-cache
Install nx globally to invoke the command directly using nx, or use npm run nx or yarn nx.
nx
npm run nx
yarn nx