Commands
Guide to @seed-design/cli commands.
Common Behavior
- Node.js 20.19.0 or higher is required to run the CLI.
addandadd-alluse theseed-design.jsonconfiguration file.- If the configuration file is missing or unreadable, it first asks whether to create one.
- Required npm package dependencies are automatically installed when adding items.
- When running
addoradd-all, if the snippet's required seed-design package version differs from the current project version, a warning is shown. (React:@seed-design/react,@seed-design/css/ Lynx:@seed-design/lynx-react,@seed-design/lynx-css) - If an existing file has different content, by default you can choose
Overwrite / Backup and Replace / Skip. - You can fix the conflict handling method in advance by providing the
--on-diffoption. - Use the
--verboseoption to see detailed information about the cause of failure.
init
A command to create the seed-design.json file.
Configuration
Learn about the seed-design.json file.
Options
| Option | Description |
|---|---|
-c, --cwd <cwd> | Working directory. Default is current directory |
-y, --yes | Create seed-design.json with defaults without questions |
--default | Deprecated. Same as --yes, creates with defaults |
--verbose | Print detailed error information including stack trace on failure |
-h, --help | Print help |
add
A command to download and add snippets to your project.
Snippet
Learn about snippets that help with reusing commonly used UI patterns.
If you omit item-ids, you can interactively select items to download.
You can also specify multiple items directly.
Options
| Option | Description |
|---|---|
-c, --cwd <cwd> | Working directory. Default is current directory |
-u, --baseUrl <baseUrl> | Registry base URL |
--seed-react-version <version> | Use registry for specified Crispy React version (e.g., 1.2). Takes precedence over --baseUrl/--framework |
-f, --framework <framework> | Target framework (react or lynx). Overrides framework value in config |
--on-diff <mode> | Specify file conflict handling mode (overwrite or backup) |
-a, --all | Deprecated. Currently outputs an error and recommends using add-all |
--verbose | Print detailed error information including stack trace on failure |
-h, --help | Print help |
Getting snippets for your version
If you need snippets compatible with the Crispy package version installed in your project, use the version option. The CLI automatically finds the registry address where that version is deployed.
The version option determines base URL and framework (react) together, so it takes precedence over --baseUrl / --framework.
Specifying baseUrl directly
To specify the registry address directly, use --baseUrl. The default is https://crispy.carrot-soft.tech for the production environment.
File conflict handling
If you don't specify --on-diff, when an existing file differs from a new snippet, you can choose one of the following:
- Overwrite
- Backup existing file as
legacy-<filename>-<timestamp>and replace - Skip
add-all
A command to add items from a registry at once.
To add all items from all registries, use the --all option.
You can also add all items from a specific registry.
To include deprecated items, use the --include-deprecated option.
If you omit both registry IDs and --all, you can interactively select registries to add.
Options
| Option | Description |
|---|---|
-a, --all | Add all items from all registries |
--include-deprecated | Include deprecated items |
-c, --cwd <cwd> | Working directory. Default is current directory |
-u, --baseUrl <baseUrl> | Registry base URL |
--seed-react-version <version> | Use registry for specified Crispy React version (e.g., 1.2). Takes precedence over --baseUrl/--framework |
-f, --framework <framework> | Target framework (react or lynx). Overrides framework value in config |
--on-diff <mode> | Specify file conflict handling mode (overwrite or backup) |
--verbose | Print detailed error information including stack trace on failure |
-h, --help | Print help |
compat
Checks if the seed-design package version in your current project is compatible with the version required by snippets. The target package varies depending on the platform. (React: @seed-design/react, @seed-design/css / Lynx: @seed-design/lynx-react, @seed-design/lynx-css)
By default, it only checks snippets already added under the path in seed-design.json.
If there's a compatibility issue, it exits with code 1; if there's no problem, it exits with 0, so it can be used directly in CI/agent environments.
You can also check specific items only.
When using component shorthand, use the -c option.
To check all registry items, use --all.
Options
| Option | Description |
|---|---|
-c, --component <component> | Component ID to check. Can be specified multiple times or comma-separated |
-r, --registry <registryId> | Specify default registry when using shorthand in --component |
-a, --all | Check all registry items |
--cwd <cwd> | Working directory. Default is current directory |
-u, --baseUrl <baseUrl> | Registry base URL |
-f, --framework <framework> | Target framework (react or lynx). Overrides framework value in config |
--verbose | Print detailed error information including stack trace on failure |
-h, --help | Print help |
docs
A command to retrieve documentation links, llms.txt links, and snippet links.
If you omit query, you can interactively select category → section → item.
Direct search
You can search directly by item name.
Path-based search
You can specify the path directly in the form category/section/item.
If you specify only the category, you can select sections/items in that category.
If you specify up to category/section, you can select items in that section.
Typo suggestions
If there's a typo in the path, it suggests similar valid paths.
Raw mode
Using the --raw option outputs llms.txt content as pure markdown without UI. It can be used in LLM pipes or scripts.
You can also get package changelogs.
Options
| Option | Description |
|---|---|
--raw | Output llms.txt content as pure markdown without UI |
-u, --baseUrl <baseUrl> | Registry base URL |
--verbose | Print detailed error information including stack trace on failure |
-h, --help | Print help |