Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): toggle additional prompts in CNW with a flag (#9546)
* feat(core): toggle additional prompts in CNW with a flag * feat(repo): handle cli params with yargs * feat(core): add docs generation * chore(repo): add colors * fix(core): migrate to yargs 17.x * fix(core): update markup generation
- Loading branch information
Showing
15 changed files
with
549 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
title: 'create-nx-workspace - CLI command' | ||
description: 'Create a new Nx workspace' | ||
--- | ||
|
||
# create-nx-workspace | ||
|
||
Create a new Nx workspace | ||
|
||
## Usage | ||
|
||
```bash | ||
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`. | ||
|
||
## Options | ||
|
||
### allPrompts | ||
|
||
Default: `false` | ||
|
||
Show all prompts | ||
|
||
### appName | ||
|
||
The name of the application when a preset with pregenerated app is selected | ||
|
||
### cli | ||
|
||
Choices: `["nx", "angular"]` | ||
|
||
CLI to power the Nx workspace | ||
|
||
### defaultBase | ||
|
||
Default: `main` | ||
|
||
Default base to use for new projects | ||
|
||
### help | ||
|
||
Show help | ||
|
||
### interactive | ||
|
||
Enable interactive mode with presets | ||
|
||
### name | ||
|
||
Workspace name (e.g. org name) | ||
|
||
### nxCloud | ||
|
||
Default: `true` | ||
|
||
Use Nx Cloud | ||
|
||
### packageManager | ||
|
||
Default: `npm` | ||
|
||
Choices: `["npm", "pnpm", "yarn"]` | ||
|
||
Package manager to use | ||
|
||
### preset | ||
|
||
Choices: `["apps", "empty", "core", "npm", "ts", "web-components", "angular", "angular-nest", "react", "react-express", "react-native", "next", "nest", "express"]` | ||
|
||
Customizes the initial content of your workspace. To build your own see https://nx.dev/nx-plugin/overview#preset | ||
|
||
### style | ||
|
||
Style option to be used when a preset with pregenerated app is selected | ||
|
||
### version | ||
|
||
Show version number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.