@whop/cli 0.23.1 → 0.24.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 +7 -6
- package/dist/chunk-M2N2M5EJ.js +45 -0
- package/dist/chunk-M2N2M5EJ.js.map +1 -0
- package/dist/{dist-KFETZ34P.js → dist-5IGUDZZ5.js} +5897 -493
- package/dist/dist-5IGUDZZ5.js.map +1 -0
- package/dist/index.js +40642 -20332
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/skills/whop/references/ads.md +5 -5
- package/dist/chunk-4MBHKXEL.js +0 -13840
- package/dist/chunk-4MBHKXEL.js.map +0 -1
- package/dist/dist-KFETZ34P.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whop/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "The Whop CLI — build and manage Whop apps from your terminal. Human and agent friendly.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@clack/prompts": "^1.5.1",
|
|
41
41
|
"@napi-rs/keyring": "^1.3.0",
|
|
42
42
|
"chalk": "5.4.1",
|
|
43
|
-
"yaml": "2.8.
|
|
43
|
+
"yaml": "2.8.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "25.3.5",
|
|
@@ -7,12 +7,12 @@ Drafts can be created without billing. Launch (`--status active`) cannot.
|
|
|
7
7
|
## Setup
|
|
8
8
|
|
|
9
9
|
1. **Auth.** `whop login` (OAuth). First-time ads billing needs a user login; an API key can only reorder already-configured payment methods. Scope errors that say the login predates the scope → `whop login` again.
|
|
10
|
-
2. **Facebook page.** `whop
|
|
11
|
-
- Connect an existing Meta Business: `whop
|
|
12
|
-
- Or create a Whop-managed page: `whop
|
|
10
|
+
2. **Facebook page.** `whop external-accounts list` must show `"platform": "facebook"`.
|
|
11
|
+
- Connect an existing Meta Business: `whop external-accounts connect --platform meta_business --scopes '["advertise"]' --redirect_url <url>` and open `authorize_url`.
|
|
12
|
+
- Or create a Whop-managed page: `whop external-accounts create --platform facebook`. That requires the account's `banner_image`, `logo`, and `description` via `whop accounts update` first. Account API keys cannot update their own account's branding — use a user login. `meta_business` is invalid on `create`; use `facebook`.
|
|
13
13
|
3. **Payment method.** `whop accounts preferences`. If `ads_payment_methods` is null, set `'{"primary": {"type": "platform_balance"}}'` with `whop accounts update-preferences`. Fund with `whop deposits create --help`. A 402 returns `deposit_url` — open it. A successful deposit's `hosted_url` is the page, not an action link.
|
|
14
14
|
|
|
15
|
-
TikTok uses `whop
|
|
15
|
+
TikTok uses `whop external-accounts connect --platform tiktok`. Same authorize-url rule.
|
|
16
16
|
|
|
17
17
|
## Launch
|
|
18
18
|
|
|
@@ -21,7 +21,7 @@ whop media generate --type image --prompt "A running club at sunrise" --wait
|
|
|
21
21
|
whop ads create \
|
|
22
22
|
--title "Launch ad" --headlines "Find your stride" --call_to_action sign_up \
|
|
23
23
|
--url "https://whop.com/your-store" \
|
|
24
|
-
--creatives '[{"id":"file_x"}]' --
|
|
24
|
+
--creatives '[{"id":"file_x"}]' --external_accounts '[{"id":"sacc_x"}]' \
|
|
25
25
|
--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"}}'
|
|
26
26
|
whop ad-campaigns update adcamp_xxx --status active
|
|
27
27
|
```
|