CLI
Use the shadcn CLI to add components to your project.
Note: We rely on the shadcn/ui CLI to add components to your project.
init
Use the init
command to initialize configuration and dependencies for a new project.
The init
command installs dependencies, adds the cn
util and configures CSS variables for the project.
Options
add
Use the add
command to add components and dependencies to your project.
Options
build
Use the build
command to generate the registry JSON files.
This command reads the registry.json
file and generates the registry JSON files in the public/r
directory.
Options
To customize the output directory, use the --output
option.