create-growthub-local
v0.1.27
Published
Growthub local installer for DX and GTM profiles
Maintainers
Readme
create-growthub-local
Install and run a local Growthub instance — GTM or DX surface — in one command.
Usage
Go-to-Market surface:
npm create growthub-local@latest -- --profile gtmDX (Developer Experience) surface:
npm create growthub-local@latest -- --profile dxBoth commands install the local runtime into a growthub-local/ folder in your current directory, onboard a fresh instance, and start the server.
Options
| Flag | Description |
|---|---|
| --profile gtm\|dx | Required. Selects the surface to install. |
| --run | Start the server immediately after install. |
| --data-dir <path> | Custom directory for instance data (default: ./growthub-local). |
| --config <path> | Path to a custom config file. |
What happens
- Installs
@growthub/cliand provisions a local instance - Starts an embedded PostgreSQL database on an auto-selected port
- Serves the local UI at
http://localhost:3100(GTM) orhttp://localhost:3101(DX) - Opens the Growthub Connection card — complete auth to bridge to hosted Growthub
Starting again after install
cd growthub-local
npx growthub startUpgrading
cd growthub-local
npx growthub upgradeUpgrades the CLI and server in place. Runs any pending migrations. No data loss.
Running two surfaces
Each surface needs its own directory:
mkdir gtm-fresh && cd gtm-fresh
npm create growthub-local@latest -- --profile gtm --run
mkdir dx-fresh && cd dx-fresh
npm create growthub-local@latest -- --profile dx --runEach instance gets an isolated database and port. They share no state.
Requirements
- Node.js 20 or later
- npm 7 or later (for
npm create)
