@whop/cli 0.18.1 → 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/README.md +1 -0
- package/dist/index.js +3075 -882
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/whop/references/websites.md +17 -0
package/package.json
CHANGED
|
@@ -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
|