Lynx

CLI

Guides how to use the Crispy CLI in Lynx projects.

Crispy CLI uses the same commands in React and Lynx. This page explains only the parts that differ in Lynx projects.

For all commands and options, see CLI Commands, and for detailed configuration files, see CLI Configuration.

Framework Auto-Detection

When running seed-design init, if @lynx-js/react or @seed-design/lynx-react is present in the project's package.json, the framework is automatically detected as Lynx.

◇  Which framework are you using?
│  Lynx   ← Auto-detected

When you use the --yes flag, the configuration file is created immediately with the detected framework.

npx @seed-design/cli init --yes

seed-design.json

This is an example of the configuration file generated in a Lynx project.

seed-design.json
{
  "tsx": true,
  "framework": "lynx",
  "path": "./seed-design",
  "telemetry": true
}

The rsc option is for React Server Components only, so it is not used in Lynx.

--framework Flag

If you want to explicitly specify the framework, you can use the --framework flag.

npx @seed-design/cli add ui:switch --framework lynx

Can be used in all add, add-all, compat, and docs commands. This flag temporarily overrides the framework value in seed-design.json.

npx @seed-design/cli docs ui:switch --framework lynx

Compatibility Check

The compat command checks different packages depending on the framework.

FrameworkPackages to check
React@seed-design/react, @seed-design/css
Lynx@seed-design/lynx-react, @seed-design/lynx-css
npx @seed-design/cli compat

Table of contents