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/cliInitialize Dreamy UI in your project with automatic setup.
pnpm dlx dreamy initWhat it does:
- Detect your framework (React Router v7, Next.js, or Vite)
- Install all required dependencies (Panda CSS + Dreamy UI)
- Create and configure
panda.config.ts - Update
vite.config.tsorpostcss.config.mjswith Panda CSS PostCSS plugin - Remove default Tailwind CSS (React Router v7 and Next.js only)
- Set up CSS files with proper imports
- Create a
DreamyProvidercomponent - Update your
tsconfig.jsonwith@/*path alias and styled-system (if using TypeScript) - Next.js also gets
styled-system/*path alias for proper type resolution - Run Panda CSS codegen to generate the styled-system
- Add recommended components (button, flex, text, heading) to get you started
- Prints out code to add to the root of your application
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:
# Interactive setup with prompts
dreamy init
# Skip all prompts
dreamy init --yes
# Skip dependency installation
dreamy init --skip-install
# Skip adding default components
dreamy init --skip-componentsAdd Dreamy UI components to your project.
dreamy add [components...]Examples:
# Add a single component
dreamy add button
# Add multiple components
dreamy add button input card
# Add all components
dreamy add --all
# Add components interactively
dreamy addOptions:
--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.
dreamy listShows a table of all available components with their names and descriptions.
Compare your local components with the registry versions.
dreamy diff [component]Examples:
# Check differences for a specific component
dreamy diff button
# Check all components
dreamy diffWhat 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, try installing the command again:
pnpm install -D @dreamy-ui/cliIf the CLI can't detect your framework:
- Make sure you have a config file (
next.config.js,react-router.config.ts, orvite.config.ts) - The file should be in the root of your project
- Try running from your project root directory
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:
dreamy init --skip-install
# Then manually install dependencies
pnpm add -D @pandacss/dev @pandacss/postcss @dreamy-ui/cli
pnpm add @dreamy-ui/react @dreamy-ui/panda-preset motionThe 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:
dreamy --help
dreamy [command] --helpVisit our documentation for more information.