The Sugarcoat CLI (@sugarcoat/cli) is a command-line tool that helps you:
- Initialize Sugarcoat in your project with interactive setup
- Add components from the registry to your project
- Manage components with install, update, remove, and diff commands
- Generate CSS artifacts from your configuration
- Diagnose issues with the built-in doctor command
Quick Start#
Available Commands#
| Command | Description |
|---|---|
init | Initialize Sugarcoat in your project |
add | Add components from the registry |
remove | Remove installed components |
update | Update components to latest versions |
list | List all available components |
search | Search for components |
info | Display component details |
diff | Show differences from registry |
codegen | Generate CSS artifacts |
dev | Run codegen in watch mode |
doctor | Check your setup |
Command Aliases#
The CLI provides convenient aliases for common commands:
You can also use sugar as a shorthand for sugarcoat:
Project Structure#
After initialization, Sugarcoat creates the following structure: