heroui-cli is a command-line interface tool designed to streamline the integration and management of HeroUI components and templates into web projects. Previously known as NextUI CLI, it transitioned to HeroUI CLI to support the evolving HeroUI ecosystem. The current stable version is v3.0.0, which specifically targets and removes logic for HeroUI v2, ensuring compatibility with HeroUI v3. The CLI offers commands to initialize new projects from various templates (Next.js App/Pages, Vite, Remix, Laravel), add/remove/upgrade HeroUI packages, and perform project health checks (doctor, env). It also includes a unique feature for downloading HeroUI documentation for AI coding agents. The project maintains an active release cadence, frequently updating to support new features and versions of HeroUI and underlying frameworks. Key differentiators include its comprehensive set of project management commands tailored for HeroUI, and its support for a range of modern web project setups.
npm install heroui-cliVerified import paths — ran on the pinned version, not inferred.
Demonstrates global installation of the CLI, initializing a new HeroUI project with a Next.js App template, installing dependencies, and starting the development server.
Ensure your project is compatible with HeroUI v3 before upgrading heroui-cli to v3.x. Refer to HeroUI's official migration guides.
For HeroUI v1 projects, stick to heroui-cli v1.x. For HeroUI v2 projects, use heroui-cli v2.x. For HeroUI v3, use heroui-cli v3.x.
Upgrade your Node.js installation to version 22.22.0 or higher. Use a version manager like `nvm` to easily switch Node.js versions.
To opt out of analytics collection, set the environment variable `HEROUI_ANALYTICS_DISABLED=1` in your shell profile or before running the command.
Always use `heroui-cli` when installing and `heroui` when executing commands. Update any scripts or documentation that refer to the old name.
Install globally with `npm install -g heroui-cli` or `pnpm install -g heroui-cli`, or run it transiently using `npx heroui-cli@latest`.
Update your Node.js installation to version 22.22.0 or newer. Consider using `nvm` (Node Version Manager) for easy version management.
Ensure your package manager meets the minimum version requirements (e.g., pnpm >=10.x). Verify the template name with `heroui init --help` or the official documentation. You can specify a package manager using `-p` flag: `heroui init my-app -t app -p npm`.