CLI Prompts Reference
Complete reference for every prompt shown when running pnpm create @sogody/experiment.
Usage
pnpm create @sogody/experiment my-experimentThe project name is a required argument. The CLI exits if it is not provided.
Prompts
Select boilerplate
| Type | Select |
| Default | product-card |
| Options | product-card, minimal |
Controls which template is used for the generated project.
product-card— Generates a Samsung product card UI with Samsung API integration,ExperimentCardPreact component, and per-variation SCSS. Use for upsell, cross-sell, and product promotion experiments.minimal— Generates a simple button component with no API integration. Use for CTA copy tests, layout experiments, and anything that doesn't need product data.
Number of variations
| Type | Select |
| Default | 1 |
| Options | 1, 2, 3, 4, custom |
Controls how many variation directories are generated under src/js/.
1— generatessrc/js/v1/only (control)2— generatessrc/js/v1/andsrc/js/v2/(A/B)custom— prompts for a number between 1 and 10
Window namespace
| Type | Text |
| Default | sgd |
| Validation | Must be a valid JavaScript identifier |
Sets the globalObject field in experiment.config.js. The IIFE bundle registers itself as window[globalObject] — for example, window.sgd.
Keep the default sgd unless it conflicts with another experiment running on the same Adobe Target page.
Include emergency brake
| Type | Confirm |
| Default | true |
Sets includeEmergencyBrake in experiment.config.js. When true, the generated experiment wraps its logic in an Adobe Target kill-switch that can be toggled off without a code deployment.
Always leave enabled for experiments going to production.
Enable E2E testing
| Type | Confirm |
| Default | false |
When true, generates e2e/, playwright.config.js, and adds pnpm test:e2e to package.json. The CLI also runs pnpm playwright install after project setup.
If false, none of the E2E files are generated and Playwright is not installed.
Base URL (E2E only)
| Type | Text |
| Default | https://samsung.com |
| Condition | Only shown when E2E is enabled |
The root URL for Playwright tests. Written to e2e/config.js as urlsConfig.baseUrl.
Market (E2E only)
| Type | Select |
| Default | — |
| Condition | Only shown when E2E is enabled |
Selects which Samsung market(s) to run E2E tests against. Multi-country groups (SEBN, SENA, SEIB) generate one test per country. See the Markets Reference for all available options.
Run smoke test (E2E only)
| Type | Confirm |
| Default | false |
| Condition | Only shown when E2E is enabled |
When true, the CLI runs pnpm build and then pnpm test:e2e immediately after project setup. Useful to verify the scaffold is working end-to-end before you start developing.