Usage
npx shadcn@latest).
Options
| Flag | Description | Default |
|---|---|---|
--registry <url> | Use a custom registry URL (defaults to LINKAPP_REGISTRY_URL or official registry) | default registry |
--yes, -y | Skip confirmation prompts | false |
--overwrite | Overwrite existing components | false |
-h, --help | Show help | - |
Available components
The default registry ships:buttoncontainerembedskeletonswitch
Prerequisites
- Run from your LinkApp project root.
components.jsonmust exist (created by create-linkapp).
Examples
Install the button component:Overwriting components
If a component already exists:--overwrite to skip the prompt:
Custom registries
The CLI resolves the component URL from:--registry <url>flag (if provided)LINKAPP_REGISTRY_URLenvironment variable- Default registry:
https://create-linkapp-registry.vercel.app/r
What happens
- Validates you provided a component name and that
components.jsonexists. - Resolves the component JSON from the registry.
- Runs
npx shadcn@latest add <component-url>with your flags. - Writes the component into
components/ui/and prints an import hint.
--overwrite or check the registry URL.