# CLI URL: /lynx/getting-started/cli Source: https://github.com/daangn/seed-design/blob/dev/docs/content/lynx/getting-started/cli.mdx 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](/react/getting-started/cli/commands), and for detailed configuration files, see [CLI Configuration](/react/getting-started/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. ```sh ◇ Which framework are you using? │ Lynx ← Auto-detected ``` When you use the `--yes` flag, the configuration file is created immediately with the detected framework. - npm: npx @seed-design/cli init --yes - pnpm: pnpm dlx @seed-design/cli init --yes - yarn: yarn dlx @seed-design/cli init --yes - bun: bun x @seed-design/cli init --yes ## seed-design.json This is an example of the configuration file generated in a Lynx project. ```json title="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. - npm: npx @seed-design/cli add ui:switch --framework lynx - pnpm: pnpm dlx @seed-design/cli add ui:switch --framework lynx - yarn: yarn dlx @seed-design/cli add ui:switch --framework lynx - bun: bun x @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`. - npm: npx @seed-design/cli docs ui:switch --framework lynx - pnpm: pnpm dlx @seed-design/cli docs ui:switch --framework lynx - yarn: yarn dlx @seed-design/cli docs ui:switch --framework lynx - bun: bun x @seed-design/cli docs ui:switch --framework lynx ## 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` | - npm: npx @seed-design/cli compat - pnpm: pnpm dlx @seed-design/cli compat - yarn: yarn dlx @seed-design/cli compat - bun: bun x @seed-design/cli compat