CLI Reference
Complete reference for the TokenUI command-line interface. Install and manage design skills directly from your terminal.
Installation
No installation required. Use npx to run the CLI directly. If you prefer, you can install it globally for faster execution.
npx tokenui.sh <command>npm install -g tokenuiCommands
add
Add a skill to your project. Installs the skill and all its dependencies.
npx tokenui.sh add <skill-name>Example:
npx tokenui.sh add buttonOptions:
--path, -pCustom installation path--force, -fOverwrite existing files--dry-runPreview changes without applyinglist
List all available skills in the gallery. Filter by category or search term.
npx tokenui.sh listExample:
npx tokenui.sh list --category formsOptions:
--category, -cFilter by category--search, -sSearch by keyword--limit, -lLimit results (default: 20)info
Show detailed information about a specific skill.
npx tokenui.sh info <skill-name>Example:
npx tokenui.sh info modalremove
Remove a skill from your project.
npx tokenui.sh remove <skill-name>Example:
npx tokenui.sh remove buttonOptions:
--force, -fSkip confirmation promptupdate
Update skills to their latest versions.
npx tokenui.sh updateExample:
npx tokenui.sh update buttonOptions:
--all, -aUpdate all skillspublish
Publish a skill to the TokenUI gallery. Opens the publish page in your browser.
npx tokenui.sh publishOptions:
--draftSave as draft instead of publishinginit
Initialize a new TokenUI-compatible project. Sets up the directory structure and configuration.
npx tokenui.sh initExample:
npx tokenui.sh init my-appOptions:
--template, -tUse a starter template--yes, -ySkip prompts with defaultsGlobal Options
These options work with any command:
--help, -hShow help for a command--version, -vShow CLI version--verboseEnable verbose logging--silentSuppress all output except errorsConfiguration
Create a tokenui.json file in your project root to customize behavior:
{
"path": "./src/components",
"typescript": true,
"tailwind": true,
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}Configuration Options
pathDefault installation directory for skillstypescriptUse TypeScript by defaulttailwindEnable Tailwind CSS integrationaliasesImport path aliases for your projectCommon Workflows
Add multiple skills at once
npx tokenui.sh add button card modal inputSearch and add skills interactively
npx tokenui.sh list --search form | npx tokenui.sh addUpdate all skills in your project
npx tokenui.sh update --allInstall to a custom directory
npx tokenui.sh add button --path ./app/ui