create command creates a new project with shadcn/ui pre-configured. It scaffolds a new project using your chosen template and preset configuration.
Usage
Arguments
string
The name of your project. If not provided, you’ll be prompted to enter one.
Options
string
The template to use:
next- Next.jsvite- Vitestart- TanStack Start
string
Use a preset configuration. Can be a preset name or URL. If used without a value, shows an interactive list of available presets.
string
The working directory. Defaults to the current directory.
boolean
default:"false"
Use the src directory when creating a new project.
boolean
Do not use the src directory when creating a new project.
boolean
default:"true"
Skip confirmation prompt.
boolean
default:"false"
Enable RTL (right-to-left) support.
Examples
Create with interactive prompts
Create a new Next.js project
Create with a specific preset
Create with preset selection
Create with custom preset URL
Create a Vite project with RTL support
Create with src directory
What it does
- Prompts for project name (if not provided)
- Prompts for template selection (if not provided)
- Prompts for preset selection (if not provided)
- Creates a new project using the selected template
- Initializes shadcn/ui with the preset configuration
- Installs a component example to get you started
- Updates template files with example component usage
Presets
Presets are pre-configured shadcn/ui setups that include:- Base style (default or base-ui)
- Design style (new-york, default, etc.)
- Base color palette
- Theme configuration
- Icon library
- Font settings
- Menu accent and colors
- Border radius