Merge branch 'shadcn/apply-preset' of github.com:shadcn-ui/ui into shadcn/apply-preset

This commit is contained in:
shadcn
2026-04-07 21:36:15 +04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ Options:
-b, --base <base> the component library to use. (radix, base)
-p, --preset [name] use a preset configuration
-y, --yes skip confirmation prompt. (default: true)
-d, --defaults use default configuration: --template=next --preset=base-nova (default: false)
-d, --defaults use default configuration: --template=next --preset=nova (default: false)
-f, --force force overwrite of existing configuration. (default: false)
-c, --cwd <cwd> the working directory. defaults to the current directory.
-n, --name <name> the name for the new project.

View File

@@ -204,7 +204,7 @@ npx shadcn@latest init --name my-app --preset base-nova --template next --monore
# Initialize existing project.
npx shadcn@latest init --preset base-nova
npx shadcn@latest init --defaults # shortcut: --template=next --preset=base-nova
npx shadcn@latest init --defaults # shortcut: --template=next --preset=nova (base style implied)
# Apply a preset to an existing project.
npx shadcn@latest apply --preset a2r6bw