Scaffold a new project in one command:
npx create-experiment my-experimentFollow the learning path first. Use reference pages only when you need exact commands, API signatures, or market tables.
experiment.config.js and src/config.jsThe tooling follows a three-step workflow from scaffold to production.
1. Scaffold - Run the create command and answer a handful of prompts. The CLI generates a complete Vite + Preact project with your chosen boilerplate, variation count, and market configuration.
npx create-experiment my-experiment2. Develop - Start the watcher for your active variation. On every save, Vite rebuilds the IIFE bundle and copies it to your clipboard automatically.
cd my-experiment
pnpm start 0 # watches v1, copies to clipboard on savePaste the clipboard contents into Adobe Target's custom code editor and refresh your preview.
3. Ship - Run a production build. Every variation compiles to a self-contained IIFE bundle ready to deploy.
pnpm build
# dist/v1/v1.js
# dist/v2/v2.jsReady to set up your environment? Start with Start Here.