Learn how to use the Rust/UI CLI to install components, initialize projects, and manage your component library efficiently.
Installation
cargo install ui-cli --forceCommands
Starters (optional, quick start)
If you want to start very easily with all setup for you, run this:
ui starters # Optional, quick startInit (existing projects)
If you want add components to an existing project, run this:
ui initThis command will setup everything for you to then add components easily.
When you run ui init, this is what you get:
package.json
Add
For adding new components, you just need to run this:
ui add button
# ui add demo_card demo_button
# └──> Works with any number of componentsGetting Started
The Rust/UI CLI provides a streamlined workflow for building component libraries in Rust. Whether you're starting a new project or adding components to an existing codebase, the CLI handles all the complexity for you.
Recommended workflow:
- Quick Start: Use
ui startersif you want a complete project setup with example components - Existing Projects: Use
ui initto configure your current project for Rust/UI components - Add Components: Use
ui add [component_name]to install individual components as needed
The CLI automatically manages dependencies, imports, and file structure, so you can focus on building your application instead of configuration.