Use the init command to initialize dependencies for a new project.
The init command installs dependencies, adds the cn util, configures tailwind.config.cjs, and creates 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.
You will be presented with a list of components to choose from:
Options
update
Use the update command to update components in your project. This will overwrite any modifications you've made to the components, so be sure to commit your changes before running this command.
We plan on improving this command in the future to improve the update experience.
Outgoing Requests
proxy
A proxy to use for outgoing request to fetch from shadcn registry. If HTTP_PROXY or http_proxy environment variables are set, the underlying request library will honor proxy settings.