Skip to content

CLI

Read component documentation and install blocks from your terminal.

Run it

bunx @xerobi/ui-cli help
BLOCKS
  xerobi-ui init             Create xerobi-ui.json in the current directory
  xerobi-ui blocks           List blocks available for installation
  xerobi-ui add <block>      Copy a block and the blocks it depends on into your project

COMPONENT REGISTRY
  xerobi-ui ls               List components by category
  xerobi-ui doc <name>       Print the documentation for one component
  xerobi-ui docs             Print the documentation for every component

MIGRATION
  xerobi-ui migrate          Print the token rename map as JSON
  xerobi-ui migrate --classes   Print class-level renames, one per line

AI
  xerobi-ui ai               Print the usage guide for AI tools and code generators

Install blocks

Blocks are copied into your project so you can change them. Imports are rewritten to @xerobi/ui paths, blocks they depend on come along, and existing files are kept unless you pass --overwrite.

xerobi-ui init
xerobi-ui blocks
xerobi-ui add sidebar

Read component docs

The same documentation as this site, as Markdown. Names accept kebab-case or PascalCase.

xerobi-ui ls
xerobi-ui doc Button
xerobi-ui doc button-group
xerobi-ui docs > xerobi-ui-docs.md

Migration

Lists Tailwind utilities that bypass the design tokens (default palette ramps, numeric z-index) and the token utility to use instead.

xerobi-ui migrate --classes > renames.txt
xerobi-ui migrate > rename-map.json

AI usage guide

Prints the component reference for code generators. Paste it into a prompt, or point a tool at https://ui.xerobi.com/llms.txt.

xerobi-ui ai

Search documentation

Search pages, components and blocks.