Use the heroui-pro CLI to log in, install and update HeroUI Pro packages, and hand an upgrade to a coding agent.
The heroui-pro CLI logs you in, downloads HeroUI Pro packages from the CDN with your license, installs their peer dependencies, and keeps them up to date. It can also hand an upgrade to a coding agent, together with the release notes it needs.
Requirements:
Run the CLI without installing it:
npx heroui-pro@latestOnce heroui-native-pro is in your project, the CLI is there too, as one of its dependencies. npx heroui-pro then runs that copy.
npm install -g heroui-pro@latestRun the CLI with no arguments to open the interactive menu:
npx heroui-proThe menu follows your login state and the Pro packages in the project:
┌ HeroUI Pro
● heroui-native-pro@1.0.0 → 1.1.0
◆ Hello @your-username (session valid for 179 days)
│ ↑↓ move, enter confirm
│ ● Install HeroUI React Native Pro (1.0.0)
│ ○ Update HeroUI React Native Pro to 1.1.0 (latest)
│ ○ Update HeroUI React Native Pro to 1.1.0 with a coding agent
│ ○ Manage your account
│ ○ Open Docs
│ ○ Logout
│ ○ Exit
└To list every command, run:
npx heroui-pro --helpUsage: heroui-pro [options] [command]
HeroUI Pro CLI — install, manage, and update your Pro packages
Options:
-v, --version output the version number
-h, --help display help for command
Commands:
login [options] Log in with GitHub or enterprise SSO
logout Sign out
account Open dashboard
buy Open pricing page
docs Open HeroUI docs
status Show login & installed packages
install [options] [product] Download artifacts and install peer dependencies
update [options] [product] Update Pro packages to the latest version
react [action] Manage react package
react-native [action] Manage react-native package
help [command] display help for commandreact install and react-native install are older forms of install react and install react-native. They still work.
Log in with your GitHub account. The CLI opens a browser tab: sign in, authorize the application, and wait for the terminal to confirm.
heroui-pro login [options]Options:
| Option | Description |
|---|---|
--sso | Log in with enterprise SSO through the HeroUI dashboard, without a GitHub account |
Output:
Waiting for authorization response...
Logged in as @your-usernameWith --sso, the CLI prints a confirmation code and opens the HeroUI dashboard. Sign in through your company's identity provider and approve the matching code. A request expires after five minutes. See SSO for how a team sets it up.
A session is valid for 180 days. See Credentials for where it is stored.
Sign out and remove the stored credential.
heroui-pro logoutShow who is logged in and which Pro packages the project has.
heroui-pro statusOutput:
Logged in as @your-username (expires in 179 days)
Installed packages:
heroui-native-pro@1.1.0When HEROUI_AUTH_TOKEN is set, status reports that the token is used and that a login is not needed.
Add HeroUI Pro to a project, or repair an install that is missing files.
heroui-pro install [product] [options][product] is react or react-native. Without it, the command works on every Pro package it finds in the project.
The command:
node_modules, including in monorepos and pnpm workspaces. When there are none, it asks which to add.packageManager field. A project with no lockfile uses npm.postinstall script.allowBuilds in pnpm-workspace.yaml for pnpm, trustedDependencies in package.json for bun.Options:
| Option | Description |
|---|---|
-y, --yes | Skip all prompts and accept the defaults |
--skip-peers | Skip peer dependency detection and installation |
--no-trust-patch | Don't change pnpm-workspace.yaml or package.json to allow install scripts |
--dry-run | Show what would be done without changing anything |
Output:
◆ 2 missing peer dependencies detected. Press Enter to confirm selection (uncheck all to skip installing peers):
│ ↑↓ move, space select, enter confirm
│ ◻ @internationalized/date (^3.12.0)
│ ◻ react-native-pager-view (>=6.0.0)
└
◇ HeroUI Pro ───────────────────────╮
│ │
│ ✓ HeroUI React Native Pro v1.1.0 │
│ │
├────────────────────────────────────╯
│
└ ✓ HeroUI React Native Pro v1.1.0 installed successfully.Optional peers start unchecked: select the ones for the components you use.
See Installation for the full setup, including global.css and the optional peer dependencies.
Update Pro packages to the latest version, then run the same steps as install.
heroui-pro update [product] [options]Options:
update takes the install options, plus:
| Option | Description |
|---|---|
--to <version> | Update to this exact version instead of the latest, for example --to 1.1.0 |
--agent | Hand the upgrade to a coding agent instead of updating directly |
--copy | With --agent: copy the task prompt to the clipboard, for any agent |
--print | With --agent: print the task prompt. Default inside a coding agent or CI |
React Pro and Native Pro have separate versions, so --to needs [product] when a project has both.
A version that package.json reads from a pnpm catalog: is updated in pnpm-workspace.yaml.
Examples:
# Update every Pro package in the project
npx heroui-pro update
# Update Native Pro to an exact version, without prompts
npx heroui-pro update react-native --to 1.1.0 --yes
# Let a coding agent update the package and fix your code
npx heroui-pro update --agentSee Update with a coding agent for what --agent does.
Each opens a page in your browser:
| Command | Opens |
|---|---|
heroui-pro account | The HeroUI Pro dashboard |
heroui-pro buy | The pricing page |
heroui-pro docs | The HeroUI Pro documentation |
heroui-pro update --agent gives a coding agent everything it needs to upgrade heroui-native-pro and fix your code for the changes in between:
npx heroui-pro update --agentheroui-native-pro version from your project and finds the latest release, or the version you pass with --to.◆ How do you want to run the upgrade?
│ ↑↓ move, enter confirm
│ ● Continue with Claude Code
│ ○ Continue with Codex
│ ○ Copy prompt for another coding agent
│ ○ Update without AI (version bump only)
│ ○ Cancel
└Claude Code and Codex are listed when they are installed. For either one, the CLI then asks whether to use Auto permission mode and, in a Git repository, whether to work in a separate worktree. With no supported agent installed, the prompt is copied to your clipboard.
The agent updates the package by running the CLI non-interactively, with the CLI version pinned:
npx heroui-pro@<version> update react-native --to <target> --yesThen it updates your code for the breaking changes and deprecations in the notes.
The agent can't complete the browser login, so log in first:
npx heroui-pro loginIn CI or a sandbox without a browser, set HEROUI_AUTH_TOKEN to your CI/CD token instead. See CI/CD.
Start from a clean working tree, so the agent's changes show up as one diff you can review.
Skip the menu with --copy or --print:
# Upgrade to a specific version
npx heroui-pro update react-native --agent --to 1.1.0
# Paste the task into another agent
npx heroui-pro update --agent --copy
# Save the task to a file
npx heroui-pro update --agent --print > upgrade.mdAlready in a coding agent session? Ask it to run the command with --print and follow the task it prints:
npx heroui-pro update --agent --printThe HeroUI Native Pro skill tells agents to do this when you ask them to upgrade.
The CLI finds the release notes through a manifest that maps each npm version to its release notes page and their Markdown source:
https://heroui.pro/docs/native/releases/manifest.jsonEach entry has the version, the page title, its url, a markdownUrl for the raw Markdown, and hasBreakingChanges. Releases are listed newest first.
Prompts are skipped with --yes, when the CI environment variable is set, and when the output is not a terminal. Without prompts, install and update:
--no-trust-patch,@heroui-pro/react and heroui-native-pro when the project has no Pro package, unless you name one: install react-native --yes.A pipeline can't complete the browser login. Set HEROUI_AUTH_TOKEN to your CI/CD token instead:
export HEROUI_AUTH_TOKEN=your-cicd-token
npx heroui-pro install react-native --yesSee CI/CD for where to get the token, and CI caching to stay under the daily download limit.
login stores your session in the operating system's keychain: Keychain on macOS, Credential Manager on Windows, and the Secret Service on Linux.
When no keychain is available, the CLI stores the session in a file that only your user can read:
| Location | Used when |
|---|---|
$XDG_CONFIG_HOME/heroui-pro/credentials.json | XDG_CONFIG_HOME is set |
~/.config/heroui-pro/credentials.json | Otherwise |
Minimal Linux installs, including most WSL distributions, ship without the keychain libraries. To use the keychain there, install them:
# Ubuntu / Debian / WSL
sudo apt update && sudo apt install -y libsecret-1-0 gnome-keyring
# Fedora / RHEL
sudo dnf install -y libsecret gnome-keyringDownloaded packages are cached in ~/.heroui/cache, by product and version. Installing the same version again, in any project on the machine, copies it from the cache instead of downloading it.
The cache keeps one version of each product. Installing another version replaces it. To force a fresh download, delete the folder.
See Troubleshooting on the Installation page for pnpm and bun install scripts, Yarn Berry, and expired sessions.
Still having issues? Contact support@heroui.pro or reach out via live chat at heroui.pro/dashboard.