@whop/cli 0.5.0 → 0.7.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 +24 -0
- package/dist/{api-E6Y2WAEG.js → api-YDHSDKDV.js} +4 -2
- package/dist/{chunk-X34EUMEM.js → chunk-BSCOWFVU.js} +17668 -15981
- package/dist/chunk-BSCOWFVU.js.map +1 -0
- package/dist/index.js +697 -200
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/skills/whop-accounts/SKILL.md +24 -0
- package/skills/whop-ad-campaigns/SKILL.md +24 -0
- package/skills/whop-ad-groups/SKILL.md +24 -0
- package/skills/whop-ads/SKILL.md +100 -0
- package/skills/whop-apps/SKILL.md +18 -0
- package/skills/whop-audiences/SKILL.md +20 -0
- package/skills/whop-cards/SKILL.md +21 -0
- package/skills/whop-checkout-configurations/SKILL.md +21 -0
- package/skills/whop-deposits/SKILL.md +19 -0
- package/skills/whop-events/SKILL.md +19 -0
- package/skills/whop-ledgers/SKILL.md +19 -0
- package/skills/whop-media/SKILL.md +23 -0
- package/skills/whop-payouts/SKILL.md +20 -0
- package/skills/whop-people/SKILL.md +19 -0
- package/skills/whop-plans/SKILL.md +23 -0
- package/skills/whop-products/SKILL.md +22 -0
- package/skills/whop-referrals/SKILL.md +22 -0
- package/skills/whop-social-accounts/SKILL.md +26 -0
- package/skills/whop-swaps/SKILL.md +21 -0
- package/skills/whop-transfers/SKILL.md +20 -0
- package/skills/whop-users/SKILL.md +22 -0
- package/skills/whop-verifications/SKILL.md +25 -0
- package/dist/chunk-X34EUMEM.js.map +0 -1
- /package/dist/{api-E6Y2WAEG.js.map → api-YDHSDKDV.js.map} +0 -0
package/README.md
CHANGED
|
@@ -44,6 +44,30 @@ whop apps deploy
|
|
|
44
44
|
|
|
45
45
|
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
46
|
|
|
47
|
+
After a deploy, read your app's server logs — every `console.log`, uncaught exception, and failed request, kept for 7 days:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
whop apps logs # recent logs for the linked app
|
|
51
|
+
whop apps logs --level error --since 1h
|
|
52
|
+
whop apps logs --query "checkout"
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Run ads
|
|
56
|
+
|
|
57
|
+
Generate a creative, then create the campaign, ad group, and ad in one command — structured flags take JSON strings:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
whop media generate --type image --prompt "A running club at sunrise" --wait
|
|
61
|
+
whop ads create \
|
|
62
|
+
--title "Launch ad" --headlines "Find your stride" --call_to_action sign_up \
|
|
63
|
+
--url "https://whop.com/your-store" \
|
|
64
|
+
--creatives '[{"id":"file_x"}]' --social_accounts '[{"id":"sacc_x"}]' \
|
|
65
|
+
--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"}}'
|
|
66
|
+
whop ad-campaigns update <adcamp_id> --status active # launch when ready
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The installed `whop-ads` skill (`whop skills add`) carries the full playbook — billing setup, field rules, and monitoring.
|
|
70
|
+
|
|
47
71
|
## For AI agents
|
|
48
72
|
|
|
49
73
|
The CLI is self-describing — agents can discover and drive every command:
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
+
API_VERSION_DATE,
|
|
4
5
|
apps_spec_default,
|
|
5
6
|
createWhopFetch,
|
|
6
7
|
filterSpecByTag,
|
|
7
8
|
native_spec_default,
|
|
8
9
|
resolveActiveAccountId
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BSCOWFVU.js";
|
|
10
11
|
import "./chunk-KFCNNWPI.js";
|
|
11
12
|
export {
|
|
13
|
+
API_VERSION_DATE,
|
|
12
14
|
apps_spec_default as appsSpec,
|
|
13
15
|
createWhopFetch,
|
|
14
16
|
filterSpecByTag,
|
|
15
17
|
native_spec_default as nativeSpec,
|
|
16
18
|
resolveActiveAccountId
|
|
17
19
|
};
|
|
18
|
-
//# sourceMappingURL=api-
|
|
20
|
+
//# sourceMappingURL=api-YDHSDKDV.js.map
|