The Dreamy UI CLI helps you initialize and manage your Dreamy UI project with ease.
The CLI is included when you install the @dreamy-ui/cli package:
pnpm add -D @dreamy-ui/cliOr run it directly without installing:
pnpm dlx @dreamy-ui/cli [command]Initialize Dreamy UI in your project with automatic setup.
pnpm dlx @dreamy-ui/cli initWhat it does:
- Detect your framework (React Router v7, Next.js, or Vite)
- Install required dependencies:
- Dev:
@pandacss/dev,@pandacss/postcss,@dreamy-ui/cli - Prod:
@dreamy-ui/react,@dreamy-ui/panda-preset,motion
- Dev:
- Create and configure
panda.config.tswith the Dreamy preset, patterns, and recipes - Add a
preparescript (panda codegen) topackage.json - Configure PostCSS (
postcss.config.mjs) — Next.js only - Update
vite.configwith the Panda CSS PostCSS plugin — Vite and React Router only (removes Tailwind if present) - Remove the default Tailwind CSS setup — React Router v7 only
- Set up your CSS file with Panda layers and import it in your app entry
- Update
tsconfig.json— addstyled-system/**/*toincludeand an@/uipath alias (Next.js also getsstyled-system/*) - Create a
components/dreamy-provider.tsxwrapper component - Wire up
DreamyProviderin your app root (with SSR color mode for React Router and Next.js) - Add recommended starter components (
button,flex,text,heading) - Run Panda CSS codegen to generate
styled-system
If automatic root setup is not possible, the CLI prints the code you need to add manually.
Options:
--yes, -y- Skip all prompts and use defaults--skip-install- Skip dependency installation (useful if you want to install manually)--skip-components- Skip adding recommended components (button,flex,text,heading)
Examples:
pnpm dlx @dreamy-ui/cli initAdd Dreamy UI components to your project.
pnpm dlx @dreamy-ui/cli add [components...]Examples:
pnpm dlx @dreamy-ui/cli add buttonOptions:
--all- Add all available components--force, -f- Overwrite existing files--dry-run, -d- Preview changes without writing files--outdir <dir>- Specify output directory for components--tsx- Force TypeScript output
What it does:
- Downloads component files from the registry
- Installs component dependencies (other components)
- Adds required recipes and patterns
- Runs Panda CSS codegen
List all available components in the Dreamy UI registry.
pnpm dlx @dreamy-ui/cli listShows a table of all available components with their names and descriptions.
Compare your local components with the registry versions.
pnpm dlx @dreamy-ui/cli diff [component]Examples:
pnpm dlx @dreamy-ui/cli diff buttonWhat it shows:
- Files that are up-to-date ✓
- Files that differ from registry ✗
- Files that don't exist locally →
- A detailed diff of changes
If you get a "command not found" error, use npx or install the CLI locally:
pnpm add -D @dreamy-ui/cliIf the CLI can't detect your framework:
- Make sure you have a config file (
react-router.config.ts,next.config.js/ts/mjs, orvite.config.ts) - The file should be in the root of your project
- Try running from your project root directory
Remix projects using Vite are detected as Vite.
After running init, you might need to:
- Restart your TypeScript server (VS Code: Cmd/Ctrl + Shift + P → "Restart TS Server")
- Run
npx panda codegento generate types - Check that
styled-system/**/*is in yourtsconfig.jsoninclude array
If dependency installation fails during init, run without installing dependencies:
pnpm dlx @dreamy-ui/cli init --skip-installThe CLI respects these environment variables:
HTTPS_PROXY- Use a proxy for fetching components from the registryREGISTRY_URL- Override the default registry URL (for development)
For more help with any command:
pnpm dlx @dreamy-ui/cli --helpVisit our documentation for more information.