HeroUI Pro

Installation

Set up HeroUI Pro in your project

Requirements

If you haven't set up HeroUI OSS yet, follow the HeroUI Quick Start first.

Login

Run the HeroUI Pro CLI and log in with your GitHub account:

npx heroui-pro login
bunx heroui-pro login
pnpm heroui-pro login

A browser tab will open automatically. Sign in with your GitHub account, authorize the application, and wait for the terminal to confirm:

Logged in as @your-username

Install

Once logged in, run:

npx heroui-pro install
bunx heroui-pro install
pnpm heroui-pro install

The CLI handles everything automatically:

  1. Adds @heroui-pro/react to your project (if not already present)
  2. Downloads Pro components from the CDN using your license
  3. Detects missing peer dependencies and installs them with the correct version ranges
  4. Configures your package manager — for pnpm and bun, offers to allowlist the postinstall script so future installs work seamlessly

You'll see an interactive prompt to confirm which peer dependencies to install. Press Enter to install all of them:

◆  14 missing peer dependencies detected. Press Enter to install all, or uncheck to skip:
│  ↑↓ move, space select, enter confirm
│  ◼ @heroui/react (>=3.0.0)
│  ◼ @heroui/styles (>=3.0.0)
│  ◼ tailwindcss (>=4.0.0)
│  ...

After installation completes you'll see:

└  ✓ HeroUI React Pro v1.0.0-alpha.8 installed successfully.

You can also use the interactive menu by running npx heroui-pro with no arguments. It provides a guided flow for login, installation, and account management.

Import Styles

Add HeroUI Pro styles to your main CSS file (e.g. globals.css):

globals.css
@import "tailwindcss";
@import "@heroui/styles";
@import "@heroui-pro/react/css"; 

Import order matters. Always import tailwindcss first, then @heroui/styles, then @heroui-pro/react/css.

Use a Pro Component

import { Command } from '@heroui-pro/react';

function App() {
  return (
    <Command>
      <Command.Backdrop />
      <Command.Container>
        <Command.Dialog>
          <Command.InputGroup>
            <Command.InputGroup.Input placeholder="Type a command..." />
          </Command.InputGroup>
          <Command.List>
            <Command.Item id="profile">Profile</Command.Item>
            <Command.Item id="settings">Settings</Command.Item>
            <Command.Item id="logout">Logout</Command.Item>
          </Command.List>
        </Command.Dialog>
      </Command.Container>
    </Command>
  );
}

CLI Reference

CommandDescription
heroui-pro loginLog in with GitHub
heroui-pro installInstall Pro packages, peer deps, and configure your PM
heroui-pro install --yesNon-interactive install (auto-accept all prompts)
heroui-pro install --dry-runPreview what would be installed without executing
heroui-pro statusShow login and installed package info
heroui-pro logoutSign out

CI/CD

For automated environments (GitHub Actions, Vercel, Netlify, etc.), use a CI/CD token instead of interactive login. Get your token from the dashboard.

Set the HEROUI_AUTH_TOKEN environment variable in your CI pipeline:

Add HEROUI_AUTH_TOKEN as a repository secret, then reference it in your workflow:

.github/workflows/deploy.yml
env:
  HEROUI_AUTH_TOKEN: ${{ secrets.HEROUI_AUTH_TOKEN }}

Add HEROUI_AUTH_TOKEN in your project's Environment Variables settings.

Add HEROUI_AUTH_TOKEN in Site settings → Environment variables.

export HEROUI_AUTH_TOKEN=your-cicd-token
npm install

When HEROUI_AUTH_TOKEN is set, the postinstall script automatically authenticates and downloads Pro artifacts — no interactive login needed. This works with all package managers.

Use your CI/CD token for pipelines, not your personal token. CI/CD tokens are scoped to your license and can be rotated independently from the dashboard.

Verify Installation

After installation, verify everything is working:

  1. Check that your app starts without errors
  2. Try importing and using a Pro component like Command or Sheet
  3. Run the CLI to check your status:
npx heroui-pro status

Troubleshooting

Installation fails with permission errors

Try running the CLI with elevated permissions or check that your package manager has write access to node_modules.

pnpm or bun: postinstall didn't run

The CLI handles this automatically — heroui-pro install downloads artifacts directly and offers to configure your package.json so future installs work natively. If you prefer to configure it manually:

  • bun: add "trustedDependencies": ["heroui-pro", "@heroui-pro/react"] to package.json
  • pnpm: add "pnpm": { "onlyBuiltDependencies": ["heroui-pro", "@heroui-pro/react"] } to package.json

Yarn Berry (PnP) not supported

HeroUI Pro requires node_modules. If using Yarn Berry, add nodeLinker: node-modules to your .yarnrc.yml.

Authentication expired

Run npx heroui-pro login to re-authenticate. Sessions are valid for 180 days.


Still having issues? Contact support@heroui.pro or reach out via live chat at heroui.pro/dashboard.

What's Next?

On this page