Modern UI CLI

Use the Modern UI CLI to add components to your project.


init

Use the init command to initialize configuration and dependencies for a new project. The init command installs dependencies, adds the cn util and configures CSS variables for the project.


add

Use the add command to add a component to your project.


version

Use the version command to check the version of the modern-ui CLI.

Options

# List installed components
npx @modern-core/ui version

# Install specific versions
npx @modern-core/ui add [component] --version 0.9.0

# Check available versions
npx @modern-core/ui version --available [component]

# Update components
npx @modern-core/ui version --update [component]