Skip to main content

init

Use the init command to initialize dependencies for a new project. The init command installs dependencies, adds the cn util, 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.

Options


registry build

Use the registry build command to generate the registry JSON files.
This command reads the registry.json file and generates the registry JSON files into the static/r directory.

Options


Outgoing Requests

Proxy

This enables the use of a proxy when sending out requests to fetch from the shadcn-svelte registry. If the HTTP_PROXY or http_proxy environment variables have been set, the request library underneath will respect the proxy settings.