CollectUICollectUI

CLI Reference

Complete hpsetup command-line arguments and options.

Usage

pnpm dlx hpsetup@latest <key> [product] [options]
HEROUI_KEY=<key> pnpm dlx hpsetup@latest [product] [options]
bunx hpsetup@latest <key> [product] [options]
HEROUI_KEY=<key> bunx hpsetup@latest [product] [options]
npx -y hpsetup@latest <key> [product] [options]
HEROUI_KEY=<key> npx -y hpsetup@latest [product] [options]

Arguments

ArgumentDescription
<key>API key, usually in the hp_xxxx format.
[product]Optional product name. Use the default when omitted.

Environment variables

VariableDescription
HEROUI_KEYAPI key used when the key is not passed as a positional argument.
CIEnables non-interactive CI behavior when present.

Common options

OptionDescription
--updateUpdate existing generated files.
--autoRun without interactive prompts.
--cwd <path>Run installation from a specific project directory.

Examples

Install locally:

pnpm dlx hpsetup@latest hp_xxxx

Install in CI:

HEROUI_KEY=hp_xxxx npx -y hpsetup@latest

Install from a workspace root:

pnpm dlx hpsetup@latest hp_xxxx --cwd apps/web

On this page