nx/docs/shared/recipes/set-up-a-new-workspace.md
Isaac Mann afa5eb59fa
docs(core): document the @nrwl => @nx rescope (#16403)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-04-27 18:14:59 -04:00

975 B

Set up a New Nx Workspace

Run the following command to create a new workspace.

# pass @latest in case npx cached an older version of create-nx-workspace
npx create-nx-workspace@latest

When creating a workspace, you will have to choose a preset, which will preconfigure a few things for you.

# create an empty workspace set up for building applications
npx create-nx-workspace --preset=apps

# create an empty workspace set up for building packages
npx create-nx-workspace --preset=core

# create an empty workspace set up for building packages with the @nx/js plugin installed
npx create-nx-workspace --preset=ts

Some presets set up applications, e2e tests, etc.

npx create-nx-workspace --preset=react-standalone
npx create-nx-workspace --preset=react-native
npx create-nx-workspace --preset=angular

For more information about possible options see the create-nx-workspace command.