title | description |
---|---|
create-nx-workspace - CLI command |
Create a new Nx workspace |
Create a new Nx workspace
create-nx-workspace [name] [options]
Install create-nx-workspace
globally to invoke the command directly, or use npx create-nx-workspace
, yarn create nx-workspace
, or pnpx create-nx-workspace
.
Type: boolean
Default: false
Show all prompts
Type: string
The name of the app when using a monorepo with certain stacks
Type: string
Bundler to be used to build the app
Type: string
E-mail of the committer
Type: string
Default: Initial commit
Commit message
Type: string
Name of the committer
Type: string
Default: main
Default base to use for new projects
Type: boolean
Generate a Dockerfile for the Node API
Type: string
Choices: [playwright, cypress, none]
Test runner to use for end to end (E2E) tests.
Type: string
Framework option to be used with certain stacks
Type: boolean
Show help
Type: boolean
Default: true
Enable interactive mode with presets
Type: string
Workspace name (e.g. org name)
Type: boolean
Enable the App Router for Next.js
Type: boolean
Generate a 'src/' directory for Next.js
Type: string
Choices: [yes, github, circleci, skip]
Do you want Nx Cloud to make your CI fast?
Type: string
Choices: [npm, pnpm, yarn]
Default: npm
Package manager to use
Type: string
Prefix to use for Angular component and directive selectors.
Type: string
Customizes the initial content of your workspace. Default presets include: ["apps", "empty", "core", "npm", "ts", "web-components", "angular-monorepo", "angular-standalone", "react-monorepo", "react-standalone", "vue-monorepo", "vue-standalone", "nuxt", "nuxt-standalone", "next", "nextjs-standalone", "remix-monorepo", "remix-standalone", "react-native", "expo", "nest", "express", "react", "vue", "angular", "node-standalone", "node-monorepo", "ts-standalone"]. To build your own see https://nx.dev/extending-nx/recipes/create-preset
Type: boolean
Default: true
Add a routing setup for an Angular app
Type: boolean
Default: false
Skip initializing a git repository
Type: boolean
Enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) for the Angular application
Type: boolean
Default: true
Use Standalone Components if generating an Angular app
Type: string
Stylesheet type to be used with certain stacks
Type: boolean
Show version number
Type: string
Choices: [integrated, package-based, standalone]
The type of workspace to create