The CLI is a command-line interface that allows you to add components to your project.
The Ruru UI CLI is a command-line tool designed to help you initialize projects and add UI components with ease.
Use the init command to set up the necessary dependencies for a new project.
Run the following command based on your package manager:
The init
, and CSS variables for the project.
During initialization, you’ll be prompted to configure the project:
- TypeScript (recommended)
- Global CSS file
- Tailwind configuration
- CSS variables
- Custom Tailwind prefix (if any)
- Import aliases for components, utils, provider, and interfaces
These configurations will be saved to ruru.json.
The init
command supports the following options:
The add
command allows you to quickly add UI components to your project.
Use the following commands depending on your package manager:
The add
command supports the following options:
The block
command allows you to quickly add blocks to your project.
Use the following commands depending on your package manager:
let's say you want to create a login block, you can do it by running the following command:
Check Out the login-1 Block
The block
command supports the following options:
The block
command also supports the --info
option, which displays information about the block.