1. Getting started
  2. API reference
  3. CLI

CLI

The dotui-cli allow you to setup up your design system quickly, scaffold components, hooks, and more. It is the easiest way to get started with dotUI.

Init command

Use the init command to initialize configuration and dependencies for a new project.

The init command installs dependencies, adds utilities, configures tailwind.config.js, and CSS variables for the project.

Usage

npx dotui-cli init [your-theme-id] [options]

Reference

OptionDescription
-h -help
Display help for command
-y --yes
Use default options
--skip-install
Skip install

Add command

Use the add command to add components, hooks, and more to your project.

Usage

npx dotui-cli add [components...] [options]

Reference

OptionDescription
-h -help
Display help for command
-y --yes
Use default options
-o --overwrite
Overwrite existing files
--cwd
The working directory
--all
Add all available components
--path
The path to add the component to.