--- title: 'workspace-lint - CLI command' description: 'Lint workspace or list of files. Note: To exclude files from this lint rule, you can add them to the `.nxignore` file' --- # workspace-lint Lint workspace or list of files. Note: To exclude files from this lint rule, you can add them to the `.nxignore` file ## Usage ```bash nx workspace-lint ``` [Install `nx` globally]({{framework}}/getting-started/nx-setup#install-nx) to invoke the command directly using `nx`, or use `npx nx`, `yarn nx`, or `pnpx nx`. ## Options ### help Show help ### version Show version number