CLI
Install items from this registry with the shadcn CLI.
Install a registry item with the command shown on its docs page.
npx shadcn@latest add https://pi-shadcn.vercel.app/r/example-card.jsonThe command that's displayed uses the homepage value from registry/config.ts for the base URL.
When deployed with a server runtime, human-facing item pages can also work with the shadcn CLI through content negotiation. For example, a browser can view /components/example-card, while the CLI receives the installable item JSON from the same URL:
npx shadcn@latest add https://pi-shadcn.vercel.app/components/example-cardFor static Cloudflare Pages deployments, use the explicit /r/<name>.json URLs instead. Static hosts cannot choose JSON or HTML from the same URL based on request headers.
Use the package manager selector on item pages to switch between npm, pnpm, yarn, bun, vite+, and deno commands.