@nrwl/workspace:new

Create an empty workspace.

Usage

nx generate new ...

By default, Nx will search for new in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nrwl/workspace:new ...

Show what will be generated without writing to disk:

nx g new ... --dry-run

Options

appName

string

Application name.

cli

string
Default: nx
Accepted values: nx, angular

CLI used for generating code and running tasks.

defaultBase

string

Default base branch for affected.

linter

string
Default: eslint
Accepted values: tslint, eslint

The tool to use for running lint checks.

name

string

The name of the workspace.

npmScope

string

Npm scope for importing libs.

nxCloud

boolean
Default: false

Connect the workspace to the free tier of the distributed cache provided by Nx Cloud.

preset

string

What to create in the new workspace.

packageManager

string
Accepted values: npm, yarn, pnpm

The package manager used to install dependencies.

style

string
Default: css

The file extension to be used for style files.

skipInstall

boolean
Default: false

Skip installing dependency packages.

Additional Properties

anything

Extra properties of any type may be provided to this object.