-
Notifications
You must be signed in to change notification settings - Fork 0
init reference
github-actions[bot] edited this page Jul 4, 2026
·
2 revisions
specui new <path> is specui init --flat with a required target name. All flags below apply to init; new accepts the subset --preset, --themes, --platforms, --agents-md, --git, and --force (defaults for a flat repo: no AGENTS.md, no git).
| Preset | Description |
|---|---|
web-app |
Default SaaS / product UI scaffolding |
mobile-app |
Mobile-first scope in front matter |
marketing-site |
Marketing / landing patterns |
dashboard-data-dense |
Dense data UI |
design-system-library |
Large catalog starter |
blank |
Minimal lists; you define components/patterns |
| Flag | Description |
|---|---|
--target <dir> |
Write the contract here (default: cwd) |
--flat |
No .specui/ wrapper — contract at target root (new sets this) |
--force |
Overwrite an existing .specui or flat SPEC.md
|
--dry-run |
Print the plan only; no writes |
| Flag | Description |
|---|---|
--name <string> |
Product name in SPEC.md
|
--category <string> |
e.g. web-app, marketing-site
|
--audience <string> |
Primary users |
| Flag | Values |
|---|---|
--themes |
light, dark, high-contrast (comma-separated) |
--platforms |
web, ios, android, flutter, desktop, other
|
--density |
comfortable, compact, dense
|
--components |
Comma list of required kebab component ids |
--patterns |
Comma list of required kebab pattern ids |
--imagery |
photo, illustration, ai-allowed
|
--rtl |
Enable RTL requirement |
--no-rtl |
Disable RTL |
--data-viz |
Charts / data visualization in scope |
--no-data-viz |
Disable data viz |
| Flag | Description |
|---|---|
--agents-md |
Inject SpecUI block into AGENTS.md (default) |
--no-agents-md |
Skip AGENTS.md
|
--agent-tools <list> |
cursor, claude, codex, copilot, gemini, windsurf
|
--no-agent-tools |
Skip per-tool stub files |
--starter-kit |
Seed 2 bundled rules + 2 skills |
--seed-rules / --no-seed-rules
|
Bundled rules templates |
--seed-skills / --no-seed-skills
|
Bundled skills templates |
If --agents-md is set and the tools list is empty, the default is cursor.
| Flag | Description |
|---|---|
--ci github |
Add GitHub Actions validate workflow (default when CI enabled) |
--no-ci |
Skip the CI template |
--git |
git init + initial commit in target |
--no-git |
Skip git (default) |
Minimal blank project:
specui init --preset blank --target ./my-app --no-ci --no-gitFull agent + CI setup:
specui init \
--name "Acme" \
--preset web-app \
--themes light,dark \
--platforms web \
--agents-md \
--agent-tools cursor,claude,copilot \
--starter-kit \
--ci githubPublishable design system:
specui new ./acme-ds --preset design-system-library --gitPreview the plan before committing to anything:
specui init --dry-run --preset web-app --target /tmp/preview| Code | Cause |
|---|---|
| 0 | Success or dry-run |
| 2 | Invalid flags, missing preset, existing contract without --force
|
- Quick start
- CLI reference — all commands
- Agents & MCP
Getting started
How-to guides
- Scenarios
- Tokens And Components
- Agents And Mcp
- Agent Prompts
- Ci Cd
- Distribution
- Registries
- Interop
- Designmd
- Validation
- Troubleshooting
Reference
Community