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, configures tailwind.config.js
, and CSS variables for the project.
You will be asked a few questions to configure components.json
:
Options
add
Use the add
command to add components and dependencies to your project.
Options
Monorepo
In a monorepo, you can specify the path to your workspace with the -c
or --cwd
option.
or