@whop/cli 0.18.0 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whop/cli",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
4
4
  "description": "The Whop CLI — build and manage Whop apps from your terminal. Human and agent friendly.",
5
5
  "keywords": [
6
6
  "agent",
@@ -46,6 +46,23 @@ The app must use the `whop()` Vite plugin (`@whop/cli/vite`). Missing it fails w
46
46
 
47
47
  Preview output is a build id. The production URL exists only after promote. `hosted_url` on `whop apps get` is the live app URL — display it; do not treat it as a "complete this step" action link.
48
48
 
49
+ ## Experimentation
50
+
51
+ Split traffic between the live production build and one next build of the same app. Whop hosting assigns visitors, serves the bound build, and records exposures. Always this flow — never a client-side test, never `whop experiments exposures`, never promote the treatment. One active experiment per app.
52
+
53
+ ```sh
54
+ whop experiments list --account_id biz_xxx --related_resource '{"object":"app","id":"app_xxx"}' --status active
55
+ whop apps deploy --preview
56
+ whop experiments create --account_id biz_xxx --flag_key xxxxxxxx --bucket_by anonymous \
57
+ --hypothesis "If we xxxxxxxx for xxxxxxxx, then xxxxxxxx will xxxxxxxx, resulting in xxxxxxxx, because xxxxxxxx. Created by xxxxxxxx." \
58
+ --related_resource '{"object":"app","id":"app_xxx"}' \
59
+ --control '{"related_resource":{"object":"app_build","id":"apbu_xxxxxxxx"}}' \
60
+ --variants '[{"name":"xxxxxxxx","weight":50,"related_resource":{"object":"app_build","id":"apbu_yyyyyyyy"}}]'
61
+ whop experiments activate expt_xxx
62
+ ```
63
+
64
+ `--preview` is the next version. Control is `production_web_build.id` from `whop apps get`. Related resource is the app. Each arm must bind a different build. If the list is non-empty, pause or end that experiment first — do not start a second. Then activate. Hosting does the rest. Flags: `whop experiments create --help`.
65
+
49
66
  ## Dev, secrets, logs
50
67
 
51
68
  ```sh