@whop/cli 0.16.0 → 0.16.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.
Files changed (55) hide show
  1. package/README.md +17 -3
  2. package/dist/index.js +6647 -15750
  3. package/dist/index.js.map +1 -1
  4. package/dist/vite-devtools-stub.d.ts +22 -0
  5. package/dist/vite-devtools-stub.js +19 -0
  6. package/dist/vite-devtools-stub.js.map +1 -0
  7. package/dist/vite.d.ts +17 -2
  8. package/dist/vite.js +30 -5
  9. package/dist/vite.js.map +1 -1
  10. package/package.json +8 -7
  11. package/skills/whop/SKILL.md +48 -0
  12. package/skills/whop/references/ads.md +43 -0
  13. package/skills/whop/references/formation.md +40 -0
  14. package/skills/whop/references/websites.md +59 -0
  15. package/skills/whop-accounts/SKILL.md +0 -228
  16. package/skills/whop-ad-campaigns/SKILL.md +0 -204
  17. package/skills/whop-ad-groups/SKILL.md +0 -269
  18. package/skills/whop-ads/SKILL.md +0 -277
  19. package/skills/whop-api-keys/SKILL.md +0 -126
  20. package/skills/whop-app-builds/SKILL.md +0 -81
  21. package/skills/whop-apps/SKILL.md +0 -161
  22. package/skills/whop-audiences/SKILL.md +0 -105
  23. package/skills/whop-bounties/SKILL.md +0 -145
  24. package/skills/whop-bounty-submissions/SKILL.md +0 -95
  25. package/skills/whop-cards/SKILL.md +0 -133
  26. package/skills/whop-checkout-configurations/SKILL.md +0 -77
  27. package/skills/whop-deposits/SKILL.md +0 -26
  28. package/skills/whop-dispute-alerts/SKILL.md +0 -42
  29. package/skills/whop-disputes/SKILL.md +0 -99
  30. package/skills/whop-events/SKILL.md +0 -105
  31. package/skills/whop-exports/SKILL.md +0 -379
  32. package/skills/whop-ledgers/SKILL.md +0 -52
  33. package/skills/whop-media/SKILL.md +0 -44
  34. package/skills/whop-members/SKILL.md +0 -64
  35. package/skills/whop-memberships/SKILL.md +0 -165
  36. package/skills/whop-notifications/SKILL.md +0 -104
  37. package/skills/whop-partners/SKILL.md +0 -113
  38. package/skills/whop-payment-method-domains/SKILL.md +0 -93
  39. package/skills/whop-payments/SKILL.md +0 -40
  40. package/skills/whop-payouts/SKILL.md +0 -167
  41. package/skills/whop-people/SKILL.md +0 -63
  42. package/skills/whop-permissions/SKILL.md +0 -21
  43. package/skills/whop-plans/SKILL.md +0 -165
  44. package/skills/whop-products/SKILL.md +0 -153
  45. package/skills/whop-recommended-actions/SKILL.md +0 -59
  46. package/skills/whop-resolution-center-cases/SKILL.md +0 -233
  47. package/skills/whop-setup-intents/SKILL.md +0 -40
  48. package/skills/whop-shipments/SKILL.md +0 -79
  49. package/skills/whop-social-accounts/SKILL.md +0 -128
  50. package/skills/whop-stats/SKILL.md +0 -65
  51. package/skills/whop-swaps/SKILL.md +0 -77
  52. package/skills/whop-team-members/SKILL.md +0 -93
  53. package/skills/whop-transfers/SKILL.md +0 -80
  54. package/skills/whop-users/SKILL.md +0 -309
  55. package/skills/whop-verifications/SKILL.md +0 -67
package/README.md CHANGED
@@ -81,6 +81,18 @@ whop apps deploy # build, typecheck, upload, promote to product
81
81
 
82
82
  The rest is plain REST: `whop apps list|create|get|update`, `whop apps builds list|get|promote`, `whop apps secrets list|set|unset`. The `whop()` Vite build plugin ships as `@whop/cli/vite`.
83
83
 
84
+ App secrets are encrypted at rest and injected into the hosted runtime. `whop apps dev` also injects them locally, except names that control the local runtime.
85
+
86
+ Manage them with:
87
+
88
+ ```bash
89
+ whop apps secrets list
90
+ whop apps secrets set --secret MAIL_API_KEY=mail-key-123
91
+ whop apps secrets unset --key MAIL_API_KEY
92
+ ```
93
+
94
+ Run these inside a linked project or pass `--app app_xxxxxxxx`. App secrets are runtime configuration; they are separate from the app API key exposed as `WHOP_API_KEY` in the dashboard.
95
+
84
96
  After a deploy, read your app's server logs (kept for 7 days):
85
97
 
86
98
  ```bash
@@ -88,7 +100,7 @@ whop apps logs app_xxxxxxxx --level error
88
100
  whop apps logs app_xxxxxxxx --query "checkout"
89
101
  ```
90
102
 
91
-
103
+ App logs cover the hosted server runtime. Use your browser's developer console for client-side JavaScript errors.
92
104
 
93
105
  ## Sell and get paid
94
106
 
@@ -133,7 +145,7 @@ whop ads create \
133
145
  whop ad-campaigns update <adcamp_id> --status active # launch when ready
134
146
  ```
135
147
 
136
- The `whop-ads` skill (`whop skills add`) carries the full playbook.
148
+ The `whop` skill (`whop skills add`) carries the launch playbook in `references/ads.md`.
137
149
 
138
150
  ## Hire a workforce
139
151
 
@@ -161,7 +173,7 @@ The CLI is self-describing. Agents can discover and drive every command:
161
173
  whop --llms # machine-readable manifest of all commands
162
174
  whop mcp add # automatically register with supported coding agents
163
175
  whop mcp doctor # diagnose an MCP registration
164
- whop skills add # generate agent skills (per-resource playbooks)
176
+ whop skills add # install the Whop agent skill
165
177
  ```
166
178
 
167
179
  For OAuth, run `whop login --method oauth --format jsonl` in the background with stdout redirected to a file (pipes like `| head` can buffer past the URL). The first line carries an `authorizationUrl`; open it in the user's browser, unedited. Once the process exits, you're logged in.
@@ -179,6 +191,8 @@ WHOP_API_KEY=whop_xxx whop login --method api-key # API key from the environme
179
191
 
180
192
  List your businesses with `whop auth account --list` and switch with `whop auth account <biz_id>`.
181
193
 
194
+ `whop api-keys permissions` lists the permissions that can be assigned to API keys. Creating, listing, updating, rotating, and revoking keys requires a first-party dashboard session, so those operations are not exposed by the CLI. Manage keys in the [Whop dashboard](https://whop.com/dashboard).
195
+
182
196
  The OAuth flow redirects to `localhost:13337`, so the browser must run on the same host as the CLI (or forward that port).
183
197
 
184
198
  ## Invocation logs