CLI
The CLI handles setup snippets, component scaffolding, composed-output source retrieval, lookup, and validation. Build it from a checkout and run node packages/cli/dist/index.js for deterministic plain-text workflows that work well for both humans and agents.
Command reference
Until npm publishing is live, use the repo-local CLI entrypoint after bun run --filter '@dryui/cli' build. It gives you plain-text output optimized
for LLMs and humans and complements the DryUI skill plus MCP workflow.
Print theme, theme-auto, and linked-development setup snippets.
node packages/cli/dist/index.js initPrint a copyable starter snippet with the correct import and compound structure.
node packages/cli/dist/index.js add Card --with-themePrint copyable Svelte source for a composed output from the catalog.
node packages/cli/dist/index.js get "Checkout Forms"Get the full component API reference (props, parts, CSS vars, and an example).
node packages/cli/dist/index.js info cardBrowse components by category.
node packages/cli/dist/index.js list --category layoutValidate a Svelte file against the DryUI spec.
node packages/cli/dist/index.js review src/routes/+page.svelteDiagnose a theme CSS file for missing tokens, value errors, and contrast/visibility issues.
node packages/cli/dist/index.js diagnose src/app.cssScaffold vs validate
Use init, add, and get when you need copyable output. Use info, list, review, and diagnose when you want deterministic lookup and validation.
Workflow map
Use the docs site for setup and source browsing, then fall back to the CLI when you want the same information in a plain-text form that agents can parse deterministically.
Theme imports, theme-auto, local-linking guidance, and form validation recipes live on the Getting Started page.
The component docs page shows props, bindable fields, structure notes, examples, and CSS hooks for each Svelte component.
Blocks, templates, and starter-kit pages expose the actual copyable Svelte source for composed outputs and reusable starters.
Static Docs
Use the static LLM endpoints when an agent or retrieval system needs project-wide DryUI context without starting a CLI or MCP process.
Detailed component imports, props, CSS variables, data attributes, and examples.
/llms-components.txtSuggested split
Use static docs for broad retrieval, the CLI for deterministic lookup, and MCP for active code or theme review.
CLI vs MCP
Prefer the CLI when you need deterministic component knowledge and source browsing. Prefer MCP when you want automated code/theme analysis inside an agent workflow.
Suggested split
Use node packages/cli/dist/index.js info and node packages/cli/dist/index.js list for “what’s available?” and
use @dryui/mcp (its review / diagnose tools) for “is this correct?”
inside Codex, Claude Code, Cursor, or another MCP client.
Agent setup
Use the Getting Started page for DryUI skill setup, the Components page for API discovery, and the MCP Server page for agent-specific MCP configuration.