Hand a HeroUI Native Pro upgrade to Claude Code, Codex, or another coding agent, with the release notes between your installed and latest versions.
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.--copy, for any other agent, or--print. This is the default when the command runs inside a coding agent or in CI.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.
| Option | Description |
|---|---|
[product] | react or react-native: the package to upgrade |
--agent | Hand the upgrade to a coding agent instead of updating directly |
--copy | Copy the task prompt to the clipboard instead of launching an agent |
--print | Print the task prompt. Default inside a coding agent or CI |
--to <version> | Upgrade to this version instead of the latest, e.g. --to 1.1.0 |
# 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 --copyAlready 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.