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.
When you use the --yes flag, the configuration file is created immediately with the detected framework.
seed-design.json
This is an example of the configuration file generated in a Lynx project.
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.
Can be used in all add, add-all, compat, and docs commands. This flag temporarily overrides the framework value in seed-design.json.
Compatibility Check
The compat command checks different packages depending on the framework.
| Framework | Packages to check |
|---|---|
| React | @seed-design/react, @seed-design/css |
| Lynx | @seed-design/lynx-react, @seed-design/lynx-css |