Skip to content

The @nx/nx plugin provides various generators to help you create and configure nx projects within your Nx workspace. Below is a complete reference for all available generators and their options.

connect-to-nx-cloud

Connect a workspace to Nx Cloud.

Usage:

Terminal window
nx generate @nx/nx:connect-to-nx-cloud [options]

Options

OptionTypeDescriptionDefault
analyticsbooleanAnonymously store hashed machine ID for task runsfalse
directorystringThe directory where the workspace is located
generateTokenbooleanExplicitly asks for a token to be created, do not override existing tokens from Nx Cloud
githubbooleanIf the user will be using GitHub as their git hosting providerfalse
hideFormatLogsbooleanHide formatting logs
installationSourcestringName of Nx Cloud installation invoker (ex. user, add-nx-to-monorepo, create-nx-workspace, nx-upgrade"user"
## Getting Help
You can get help for any generator by adding the `--help` flag:
```bash
nx generate @nx/nx:<generator> --help
```