@whop/cli 0.6.0 → 0.8.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 +28 -2
- package/dist/index.js +37811 -780
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/skills/whop-accounts/SKILL.md +5 -2
- package/skills/whop-ads/SKILL.md +76 -0
- package/skills/whop-apps/SKILL.md +18 -0
- package/skills/whop-events/SKILL.md +19 -0
- package/skills/whop-media/SKILL.md +23 -0
- package/skills/whop-partners/SKILL.md +23 -0
- package/skills/whop-payouts/SKILL.md +3 -2
- package/skills/whop-people/SKILL.md +19 -0
- package/skills/whop-social-accounts/SKILL.md +26 -0
- package/skills/whop-stats/SKILL.md +19 -0
- package/skills/whop-verifications/SKILL.md +4 -0
- package/skills/whop-workforce-bounties/SKILL.md +19 -0
- package/dist/api-P7EWPZKG.js +0 -18
- package/dist/api-P7EWPZKG.js.map +0 -1
- package/dist/chunk-GKKJXDPK.js +0 -33369
- package/dist/chunk-GKKJXDPK.js.map +0 -1
- package/skills/whop-referrals/SKILL.md +0 -22
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Whop CLI
|
|
2
2
|
|
|
3
|
-
`whop` —
|
|
3
|
+
`whop` — build and manage your Whop business from the terminal. Deploy apps, manage products and pricing, run ads, move money, and automate workflows from one agent-friendly CLI.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ Prebuilt binaries cover macOS and Linux ([releases](https://github.com/whopio/wh
|
|
|
23
23
|
whop
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
That's it — it signs you in and
|
|
26
|
+
That's it — it signs you in, lets you choose or create the business the CLI should use, and points you to the available workflows. Run `whop quickstart` later to change the selected business.
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
29
29
|
|
|
@@ -36,6 +36,8 @@ whop stats list # your numbers
|
|
|
36
36
|
|
|
37
37
|
Every command takes `--format json` for structured output.
|
|
38
38
|
|
|
39
|
+
In a terminal, commands that are missing required inputs ask for them interactively instead of failing — run `whop swaps quote` with no flags and it prompts for the amount and tokens. Agents and scripts (non-TTY) get a structured validation error instead.
|
|
40
|
+
|
|
39
41
|
## Deploy an app
|
|
40
42
|
|
|
41
43
|
```bash
|
|
@@ -44,6 +46,30 @@ whop apps deploy
|
|
|
44
46
|
|
|
45
47
|
The one-stop deploy for fully-hosted web apps (`*.whop.app`): it verifies the current directory is a Whop-ready Vite app — offering to scaffold a new one or link an existing Whop app if not — then builds, typechecks, uploads, and promotes the build to production. Use `--skip_promote` to upload a preview build, and `whop apps builds promote <build_id>` to ship it later. Everything else is plain REST: `whop apps list|create|get|update` and `whop apps builds list|get|create|promote`.
|
|
46
48
|
|
|
49
|
+
After a deploy, read your app's server logs — every `console.log`, uncaught exception, and failed request, kept for 7 days:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
whop apps logs # recent logs for the linked app
|
|
53
|
+
whop apps logs --level error --since 1h
|
|
54
|
+
whop apps logs --query "checkout"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Run ads
|
|
58
|
+
|
|
59
|
+
Generate a creative, then create the campaign, ad group, and ad in one command — structured flags take JSON strings:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
whop media generate --type image --prompt "A running club at sunrise" --wait
|
|
63
|
+
whop ads create \
|
|
64
|
+
--title "Launch ad" --headlines "Find your stride" --call_to_action sign_up \
|
|
65
|
+
--url "https://whop.com/your-store" \
|
|
66
|
+
--creatives '[{"id":"file_x"}]' --social_accounts '[{"id":"sacc_x"}]' \
|
|
67
|
+
--ad_group '{"title":"US broad","conversion_location":"website","ad_campaign":{"title":"Growth","platform":"meta","objective":"sales","status":"draft","budget_amount":25,"budget_optimization":"ad_campaign"}}'
|
|
68
|
+
whop ad-campaigns update <adcamp_id> --status active # launch when ready
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
The installed `whop-ads` skill (`whop skills add`) carries the full playbook — billing setup, field rules, and monitoring.
|
|
72
|
+
|
|
47
73
|
## For AI agents
|
|
48
74
|
|
|
49
75
|
The CLI is self-describing — agents can discover and drive every command:
|