registry command helps you manage custom registries and add registry items to your registry.
Usage
Subcommands
add
Add an item to your registry:Options
The name of the registry item to add
The working directory. Defaults to the current directory.
Examples
Add item to registry
Add multiple items
What it does
When you runregistry add:
- Validates item - Checks that the component exists in your project
- Generates schema - Creates registry item JSON with metadata
- Updates registry - Adds the item to your registry.json
- Includes dependencies - Automatically tracks component dependencies
Use cases
Theregistry command is useful when you’re:
- Building a custom registry - Creating your own component library
- Sharing components - Distributing components to other projects
- Managing internal libraries - Maintaining company-wide design systems
Related commands
shadcn add- Add components from registriesshadcn build- Build your registry
Learn more
- Registry Documentation - Complete guide to registries
- Getting Started with Registries - Create your first registry
- Registry Schema - Registry item JSON format