CLI
Install a registry item with the command shown on its docs page. Package managers are interchangeable:
1npx shadcn-svelte@latest add https://sveltedocs.canceydejean.dev/r/button.json
2pnpm dlx shadcn-svelte@latest add https://sveltedocs.canceydejean.dev/r/button.json
3yarn dlx shadcn-svelte@latest add https://sveltedocs.canceydejean.dev/r/button.json
4bun x shadcn-svelte@latest add https://sveltedocs.canceydejean.dev/r/button.json The command displayed on item pages uses the homepage value from registry/config.ts for the base URL. Update homepage before deploying.
Human-facing item pages also work with the CLI through content negotiation. A browser can view /components/button, while the CLI receives the installable item JSON from the same URL when it sends a shadcn user agent or the shadcn JSON Accept header:
1npx shadcn-svelte@latest add https://sveltedocs.canceydejean.dev/components/button