diff --git a/docs/generated/cli/create-nx-workspace.md b/docs/generated/cli/create-nx-workspace.md index 7914ec57c91be..19c9bbad49976 100644 --- a/docs/generated/cli/create-nx-workspace.md +++ b/docs/generated/cli/create-nx-workspace.md @@ -85,9 +85,7 @@ Package manager to use Type: string -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 +Customizes the initial content of your workspace. Default presets include: ["apps", "empty", "core", "npm", "ts", "web-components", "angular", "angular-nest", "react", "react-express", "react-native", "next", "nest", "express"]. To build your own see https://nx.dev/nx-plugin/overview#preset ### style diff --git a/packages/create-nx-workspace/bin/create-nx-workspace.ts b/packages/create-nx-workspace/bin/create-nx-workspace.ts index f3559a6c73684..8817154e7c6b7 100644 --- a/packages/create-nx-workspace/bin/create-nx-workspace.ts +++ b/packages/create-nx-workspace/bin/create-nx-workspace.ts @@ -132,8 +132,13 @@ export const commandsObject: yargs.Argv = yargs type: 'string', }) .option('preset', { - describe: chalk.dim`Customizes the initial content of your workspace. To build your own see https://nx.dev/nx-plugin/overview#preset`, - choices: Object.values(Preset), + describe: chalk.dim`Customizes the initial content of your workspace. Default presets include: [${Object.values( + Preset + ) + .map((p) => `"${p}"`) + .join( + ', ' + )}]. To build your own see https://nx.dev/nx-plugin/overview#preset`, type: 'string', }) .option('appName', {