@whop/cli 0.10.1 → 0.11.0
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 +21 -6
- package/dist/index.js +1708 -1105
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/whop-ad-campaigns/SKILL.md +1 -0
- package/skills/whop-verifications/SKILL.md +2 -2
package/README.md
CHANGED
|
@@ -58,20 +58,35 @@ Agent OAuth recipe:
|
|
|
58
58
|
|
|
59
59
|
The flow redirects to `localhost:13337`, so the browser must run on the same host as the CLI (or forward that port to the CLI host). Fully remote browser authorization will require a future device login flow.
|
|
60
60
|
|
|
61
|
-
##
|
|
61
|
+
## Build and deploy apps
|
|
62
|
+
|
|
63
|
+
Fully-hosted web apps (`*.whop.app`) follow a git-shaped lifecycle — two on-ramps, one loop:
|
|
62
64
|
|
|
63
65
|
```bash
|
|
64
|
-
|
|
66
|
+
# Start a NEW app: registers it, scaffolds the latest TanStack Start
|
|
67
|
+
# template (or --template app_xxx to clone another app's published source),
|
|
68
|
+
# wires it for Whop hosting, installs, and git-inits
|
|
69
|
+
whop apps init
|
|
70
|
+
|
|
71
|
+
# …or get an EXISTING app's deployed source onto this machine: downloads the
|
|
72
|
+
# production build's source archive (--build abld_xxx for any specific build)
|
|
73
|
+
# and three-way merges it with whatever is here via git
|
|
74
|
+
whop apps pull --app app_xxxxxxxx
|
|
75
|
+
|
|
76
|
+
# The loop
|
|
77
|
+
whop apps dev # local dev server, credentials auto-injected
|
|
78
|
+
whop apps deploy # build → typecheck → upload → promote to production
|
|
65
79
|
```
|
|
66
80
|
|
|
67
|
-
|
|
81
|
+
`deploy` ships the linked project; `--preview` uploads without promoting, and `whop apps builds promote <build_id>` ships it later — promoting an older build is also how you roll back. `pull` and `deploy` share a per-app snapshot ref (`refs/whop/remote/<app_id>`), so pulls always merge against the last state this machine saw: local edits are autostashed around the merge and conflicts surface as normal git conflict markers.
|
|
82
|
+
|
|
83
|
+
Everything else is plain REST: `whop apps list|create|get|update`, `whop apps builds list|get|promote`, and `whop apps secrets list|set|unset`.
|
|
68
84
|
|
|
69
85
|
After a deploy, read your app's server logs — every `console.log`, uncaught exception, and failed request, kept for 7 days:
|
|
70
86
|
|
|
71
87
|
```bash
|
|
72
|
-
whop apps logs
|
|
73
|
-
whop apps logs
|
|
74
|
-
whop apps logs --query "checkout"
|
|
88
|
+
whop apps logs app_xxxxxxxx --level error
|
|
89
|
+
whop apps logs app_xxxxxxxx --query "checkout"
|
|
75
90
|
```
|
|
76
91
|
|
|
77
92
|
## Run ads
|