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.
Options
Outgoing Requests
Proxy
This enables the use of a proxy when sending out requests to fetch from the shadcn registry. If the HTTP_PROXY or http_proxy environment variables have been set, the request library underneath will respect the proxy settings.