HeroUI CLI

3.0.0 · active · verified Wed Apr 22

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.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates global installation of the CLI, initializing a new HeroUI project with a Next.js App template, installing dependencies, and starting the development server.

npm install -g heroui-cli

# Initialize a new HeroUI project using the 'app' template
heroui init my-heroui-app -t app

cd my-heroui-app

# Install project dependencies
npm install

# Start the development server
npm run dev

view raw JSON →