The cxful-ui CLI is the fastest way to add components to your project. It handles dependencies, directory structure, and configuration for you.
init
Initialize your project and create the cxful.json configuration file.
npx cxful-ui init
This will ask you a few questions about your project structure (where to put components, what framework you are using, etc.).
add
Add a component to your project.
npx cxful-ui add [component]
Examples
# Add a button
npx cxful-ui add button
# Add multiple components
npx cxful-ui add input badge card
# Overwrite existing components
npx cxful-ui add dialog --overwrite
diff
Check for updates to your components.
npx cxful-ui diff [component]
This will compare your local version with the latest version in our registry and show you what has changed.