init

Adds Nx to any type of workspace. It installs nx, creates an nx.json configuration file and optionally sets up remote caching. For more info, check https://nx.dev/recipes/adopting-nx.

Usage

nx init

Install nx globally to invoke the command directly using nx, or use npx nx, yarn nx, or pnpm nx.

Options

OptionTypeDescription
--helpbooleanShow help.
--interactivebooleanWhen false disables interactive input prompts for options. (Default: true)
--nxCloudbooleanSet up distributed caching with Nx Cloud.
--useDotNxInstallationbooleanInitialize an Nx workspace setup in the .nx directory of the current repository. (Default: false)
--versionbooleanShow version number.