Context
PR#307 (pending) adds an npx open-stellar bootstrap CLI command. This companion issue specifies the interactive wizard flow for first-time setup.
What to implement
Wizard steps (prompts via readline or @inquirer/prompts)
- Project name — used as the
NEXT_PUBLIC_APP_NAME env var
- Stellar network —
testnet or mainnet (sets STELLAR_NETWORK)
- Database URL — validate format; set
DATABASE_URL
- Admin wallet address — must be a valid G... Stellar public key
- Confirm — show a summary and ask to proceed
Output
- Write a
.env.local file with all values
- Print a success message with next steps (
npm run dev)
Validation
- Step 4: reject non-Stellar addresses (not starting with G, not 56 chars)
- Step 3: warn (don't fail) if URL doesn't look like postgres://...
Acceptance criteria
Context
PR#307 (pending) adds an
npx open-stellar bootstrapCLI command. This companion issue specifies the interactive wizard flow for first-time setup.What to implement
Wizard steps (prompts via
readlineor@inquirer/prompts)NEXT_PUBLIC_APP_NAMEenv vartestnetormainnet(setsSTELLAR_NETWORK)DATABASE_URLOutput
.env.localfile with all valuesnpm run dev)Validation
Acceptance criteria
npx open-stellar bootstraplaunches the wizard.env.localwritten with all 4 values--yesflag skips confirmations with defaults (for CI use)