-
Notifications
You must be signed in to change notification settings - Fork 0
cli
Run specui --help for the in-terminal summary. This page documents every command, for both consumer projects (.specui/) and flat design-system repos.
Path convention: [path] defaults to ./.specui, or the flat root where SPEC.md exists.
| Command | Description |
|---|---|
specui --version |
Package version |
specui --help |
Command list |
Scaffold the consumer layout: target/.specui/, optional AGENTS.md, CI, rules/skills.
See the init reference for all flags.
Create a flat publishable repo (SPEC.md at root). A wrapper around init --flat.
specui new ./acme-ds --preset design-system-libraryRegister before you write application code — that's the whole point of the contract.
specui add component primary-button --variants default,destructive --states default,hover,disabledCreates .specui/components/<name>/ with a manifest and spec stubs.
Types: icon, illustration, photo, logo.
specui add asset logo acme-mark --link component:brand-markspecui add token color.text.primary "#111111" --theme light
specui add token color.text.primary "#eeeeee" --theme darkspecui add pattern empty-stateValidation — schema, registry, contrast, AGENTS.md.
specui validate .specui --strict --jsonRebuild manifests/registry.json; report broken links.
Readiness report + validate. Exits 1 if validate fails.
| Kind | Shows |
|---|---|
all (default) |
Components, assets, patterns summary |
components |
Component registry |
assets |
Asset registry |
patterns |
Pattern files |
sources |
.specui-sources.yml entries |
registries |
Built-in registry ids (e.g. shadcn) |
Registries — shadcn and custom JSON URLs.
specui get --list
specui get button card
specui get --from https://example.com/r/item.jsonSee Distribution for the full guide.
| Command | Summary |
|---|---|
load <source> [--as name] |
Copy git/npm/dir into .specui
|
link <source> [--as name] |
Symlink source |
unlink [--name name] |
Remove link |
push [--remote origin] |
Commit + push flat DS repo |
pull [--remote origin] |
Fetch flat DS repo |
import <tarball|dir> |
Import into .specui
|
export [--format …] [--to path] |
Interop |
update [--name source] |
Re-fetch source + validate |
diff --from A --to B [--json] |
Token diff |
templates · add <name> [--from template] · list · show <name> · remove <name>
templates · add <name> [--from template] · list · show <name> · remove <name>
Print the normative SpecUI standard (docs/SPEC.md from the package).
specui spec --jsonstart · config · install-hook <cursor|claude|codeium|windsurf|continue>
--format |
Output |
|---|---|
tarball (default) |
.tgz archive |
dir |
Directory tree |
designmd |
DESIGN.md-style front matter |
dtcg |
DTCG JSON (--theme) |
tailwind |
JS theme extend (--theme) |
css |
CSS custom properties (--theme) |
json |
Flat JSON tokens |
specui export --format tailwind --theme light --to ./tw.js --from .specui| Code | Typical cause |
|---|---|
| 0 | Success |
| 1 |
validate / doctor / update validation failure |
| 2 | Usage error, missing path, die() messages |
- Node 18+
- Network required for
get(unless you usefile:/// local JSON) - Git required for
load/push/pullfrom remotes
Getting started
How-to guides
- Scenarios
- Tokens And Components
- Agents And Mcp
- Agent Prompts
- Ci Cd
- Distribution
- Registries
- Interop
- Designmd
- Validation
- Troubleshooting
Reference
Community