CLI Overview

All 12 commands at a glance with links to per-command pages.

The 12 commands

The CLI wraps every catalog interaction in a short verb. npx @webdesignhot/design-md <command> is the canonical form; if you’ve installed globally just design-md <command>.

CommandOne-lineReference
add <slug>Drop a brand’s DESIGN.md into your repoadd →
initScaffold a fresh DESIGN.md for your own brandinit →
listList all brands in the cataloglist →
category <name>List brands in a single categorycategory →
preview <slug>Open the brand’s catalog page in browserpreview →
lint <file>Validate a DESIGN.md against the schemalint →
diff <a> <b>Token-level diff between two brandsdiff →
export <file>Convert to Tailwind, CSS vars, DTCG, or Figma JSONexport →
theme <slug>Pick a specific theme variant for a multi-theme brandtheme →
extract <url>Extract a draft DESIGN.md from any production URLextract →
submit <file>Open a PR to add your DESIGN.md to the public catalogsubmit →

11 commands shown (plus help/--help which is just the help screen).

Global flags

FlagUse
--help, -hPrint help for any command
--version, -vPrint the installed CLI version
--format=json(where applicable, e.g. lint, diff) Output as JSON for piping

Where to go next