shadcn CLI 3.0 and MCP Server icon

shadcn CLI 3.0 and MCP Server

One command line to add UI components to your project

ui.shadcn.com
Screenshot of shadcn CLI 3.0 and MCP Server

About shadcn CLI 3.0 and MCP Server

shadcn CLI 3.0 and MCP Server offer a robust foundation for establishing a customizable design system through shadcn/ui, a collection of elegantly designed components. Users can leverage the shadcn CLI to seamlessly integrate UI components into their projects. The init command is crucial for setting up a new project, taking care of necessary dependencies, adding the cn utility, and configuring CSS variables. Users can specify components by name, URL, or local paths while choosing templates and base colors. It supports various flags to customize the initialization, like skipping confirmations, overwriting configurations, and whether or not to use CSS variables or base styles.

The add command further enhances flexibility, allowing users to incorporate specific components and dependencies into existing projects. Users have options to overwrite files, specify paths, or add all available components, with additional options for silent operation and directory configurations.

For exploring the registry before installation, the view command presents items and supports namespace queries. Searching through registries is facilitated by the search command, with options to query specific strings and manage display limits. The list command works synonymously with search in querying registry items.

When it comes to managing registries, the build command is used to generate JSON files from a standard registry file, offering customization on the output directory. This makes the shadcn CLI a versatile tool for managing, customizing, and deploying design components efficiently within development environments.

Information shown may be outdated. Found an error? Report it here