@whop/cli 0.13.0 → 0.13.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whop/cli",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "The Whop CLI — build and manage Whop apps from your terminal. Human and agent friendly.",
5
5
  "keywords": [
6
6
  "agent",
@@ -38,14 +38,13 @@
38
38
  "dependencies": {
39
39
  "@clack/prompts": "^1.5.1",
40
40
  "@napi-rs/keyring": "^1.3.0",
41
- "@whop/sdk": "^0.0.40",
42
41
  "chalk": "5.4.1",
43
42
  "yaml": "2.8.0"
44
43
  },
45
44
  "devDependencies": {
46
45
  "@types/node": "25.3.5",
47
46
  "fflate": "0.8.2",
48
- "incur": "github:whopio/incur#585b28b5317c8b5aeb58acb034bea04ed4adc067",
47
+ "incur": "github:whopio/incur#137287a52ac16199551eeed243c967951f481828",
49
48
  "tsup": "8.5.0",
50
49
  "tsx": "4.19.4",
51
50
  "typescript": "5.9.3",
@@ -18,6 +18,7 @@ Use the Ad Campaigns API to create campaigns, list campaigns for an account, ret
18
18
  | `whop ad-campaigns delete` | Delete an Ad Campaign |
19
19
  | `whop ad-campaigns get` | Retrieve an Ad Campaign |
20
20
  | `whop ad-campaigns update` | Update an Ad Campaign |
21
+ | `whop ad-campaigns duplicate` | Duplicate an Ad Campaign |
21
22
  | `whop ad-campaigns pause` | Pause an Ad Campaign |
22
23
  | `whop ad-campaigns retry_payment` | Retry a Failed Ad Campaign Payment |
23
24
  | `whop ad-campaigns unpause` | Unpause an Ad Campaign |
@@ -20,6 +20,7 @@ Use the Ad Groups API to create ad groups in campaigns, list or retrieve targeti
20
20
  | `whop ad-groups delete` | Delete an Ad Group |
21
21
  | `whop ad-groups get` | Retrieve an Ad Group |
22
22
  | `whop ad-groups update` | Update an Ad Group |
23
+ | `whop ad-groups duplicate` | Duplicate an Ad Group |
23
24
  | `whop ad-groups pause` | Pause an Ad Group |
24
25
  | `whop ad-groups unpause` | Unpause an Ad Group |
25
26
 
@@ -18,6 +18,7 @@ Use the Ads API to list ads for an account, create ads inside ad groups, retriev
18
18
  | `whop ads delete` | Delete an Ad |
19
19
  | `whop ads get` | Retrieve an Ad |
20
20
  | `whop ads update` | Update an Ad |
21
+ | `whop ads duplicate` | Duplicate an Ad |
21
22
  | `whop ads pause` | Pause an Ad |
22
23
  | `whop ads unpause` | Unpause an Ad |
23
24
 
@@ -34,10 +35,10 @@ Three commands take you from nothing to a launchable ad: generate a creative, cr
34
35
  - **Already connected** — use its `sacc_` id as-is.
35
36
  - **Link a Meta Business account** — `whop social-accounts connect --platform meta_business --scopes '["advertise"]' --redirect_url <url>`, then send the user to the returned `authorize_url`.
36
37
  - **No page at all** — have Whop create one for the account: `whop social-accounts create --platform facebook`.
37
- 3. **Ads payment method** — check with `whop accounts preferences <account_id>` (your `biz_` ID, from `whop accounts me`). If `ads_payment_methods` is null, configure balance billing:
38
+ 3. **Ads payment method** — check with `whop accounts preferences --account_id <account_id>` (your `biz_` ID, from `whop accounts me`). If `ads_payment_methods` is null, configure balance billing:
38
39
 
39
40
  ```sh
40
- whop accounts update-preferences <account_id> --ads_payment_methods '{"primary": {"type": "platform_balance"}}'
41
+ whop accounts update-preferences --account_id <account_id> --ads_payment_methods '{"primary": {"type": "platform_balance"}}'
41
42
  ```
42
43
 
43
44
  Only launching needs this — drafts work without. Fund the balance with `whop deposits create --amount 50` (returns a hosted deposit page URL).
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: whop-api-keys
3
+ description: Programmatic credentials for an account or app. Run `whop api-keys --help` for usage details.
4
+ requires_bin: whop
5
+ command: whop api-keys
6
+ ---
7
+
8
+ An API Key is a programmatic credential owned by an account or app. Each key carries its own permissions policy — explicit permission statements or an inherited system role — and can be restricted with an expiration date and an IP allowlist.
9
+
10
+ Use the API Keys API to list a company or app's keys, create a key (the full secret is returned once, on creation), inspect a key's effective grants, update its name or restrictions, rotate its secret, and revoke it. These endpoints require a user session — they cannot be called with an API key.
11
+
12
+ ## Commands
13
+
14
+ | Command | Description |
15
+ |---------|-------------|
16
+ | `whop api-keys list` | List API Keys |
17
+ | `whop api-keys create` | Create API Key |
18
+ | `whop api-keys permissions` | List Permissions |
19
+ | `whop api-keys delete` | Delete API Key |
20
+ | `whop api-keys get` | Retrieve API Key |
21
+ | `whop api-keys update` | Update API Key |
22
+ | `whop api-keys rotate` | Rotate API Key |
23
+
24
+ Run `whop api-keys <command> --help` for options, or `whop api-keys <command> --schema` for full argument details.
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: whop-app-builds
3
+ description: Versioned build artifacts deployed to an app's platforms. Run `whop app-builds --help` for usage details.
4
+ requires_bin: whop
5
+ command: whop app-builds
6
+ ---
7
+
8
+ An App Build is a versioned artifact uploaded for an app — a hosted web archive, or an iOS/Android bundle. Builds start as drafts, go through review, and one approved build per platform is served to users as the production build.
9
+
10
+ Use the App Builds API to upload a build for an app, list an app's builds with platform and status filters, retrieve a build, and promote a draft or approved build to production.
11
+
12
+ ## Commands
13
+
14
+ | Command | Description |
15
+ |---------|-------------|
16
+ | `whop app-builds list` | List App Builds |
17
+ | `whop app-builds create` | Create App Build |
18
+ | `whop app-builds get` | Retrieve App Build |
19
+ | `whop app-builds promote` | Promote App Build |
20
+
21
+ Run `whop app-builds <command> --help` for options, or `whop app-builds <command> --schema` for full argument details.
@@ -13,6 +13,11 @@ Use the Apps API to manage app configuration and, for hosted apps, read server r
13
13
 
14
14
  | Command | Description |
15
15
  |---------|-------------|
16
+ | `whop apps list` | List Apps |
17
+ | `whop apps create` | Create App |
18
+ | `whop apps get` | Retrieve App |
19
+ | `whop apps update` | Update App |
16
20
  | `whop apps logs` | List App Logs |
21
+ | `whop apps permissions` | Update App Permissions |
17
22
 
18
23
  Run `whop apps <command> --help` for options, or `whop apps <command> --schema` for full argument details.
@@ -17,5 +17,6 @@ Use the Bounties API to create and publish a bounty, list an account's bounties
17
17
  | `whop bounties create` | Create Bounty |
18
18
  | `whop bounties get` | Retrieve Bounty |
19
19
  | `whop bounties update` | Update Bounty |
20
+ | `whop bounties cancel` | Cancel |
20
21
 
21
22
  Run `whop bounties <command> --help` for options, or `whop bounties <command> --schema` for full argument details.
@@ -15,5 +15,8 @@ Use the Bounty Submissions API to submit proof of completed work to a bounty, li
15
15
  |---------|-------------|
16
16
  | `whop bounty-submissions list` | List Bounty Submissions |
17
17
  | `whop bounty-submissions create` | Create Bounty Submission |
18
+ | `whop bounty-submissions delete` | Cancel Bounty Submission |
19
+ | `whop bounty-submissions get` | Retrieve Bounty Submission |
20
+ | `whop bounty-submissions submit` | Submit Bounty Submission |
18
21
 
19
22
  Run `whop bounty-submissions <command> --help` for options, or `whop bounty-submissions <command> --schema` for full argument details.
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  name: whop-people
3
- description: Visitors and customers of an account, aggregated from pixel events. Run `whop people --help` for usage details.
3
+ description: Visitors and customers of an account, with identity, purchase, and traffic profiles. Run `whop people --help` for usage details.
4
4
  requires_bin: whop
5
5
  command: whop people
6
6
  ---
7
7
 
8
- A Person represents a visitor or customer of an account, assembled from [pixel events](https://docs.whop.com/api-reference/beta/events/event) and purchase activity — ad clicks, storefront visits, and checkouts.
8
+ A Person is an identity-linked profile of a visitor or customer of an account, assembled from every [event](https://docs.whop.com/api-reference/beta/events/event) the person generated — pixel page views, ad clicks, leads, identifies, and payments. Each profile carries the person's known identities (names, emails, phones, user IDs), purchase history and LTV, geo/device profile, traffic sources, and the first and last marketing touches that reached them.
9
9
 
10
- Use the People API to list the people of an account and retrieve a single person.
10
+ Use the People API to list and segment the people of an account — filter by activity, purchases, traffic source, location, or marketing touch, and sort by value — or retrieve one person by person ID, user ID, email address, or phone number.
11
11
 
12
12
  ## Commands
13
13
 
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: whop-team-members
3
+ description: An account's team members and the roles that scope their access. Run `whop team-members --help` for usage details.
4
+ requires_bin: whop
5
+ command: whop team-members
6
+ ---
7
+
8
+ A Team Member is a member of an account's team: the link between a user and an account, carrying the role that controls what they can do. Roles are either system roles (like `admin` or `moderator`) or `custom` roles managed from the dashboard.
9
+
10
+ Use the Team Members API to list an account's team, add a user to the team with a system role, change a member's role, and remove members. Adding a user who has not yet accepted sends an invitation instead.
11
+
12
+ ## Commands
13
+
14
+ | Command | Description |
15
+ |---------|-------------|
16
+ | `whop team-members list` | List Team Members |
17
+ | `whop team-members create` | Create Team Member |
18
+ | `whop team-members delete` | Delete Team Member |
19
+ | `whop team-members get` | Retrieve Team Member |
20
+ | `whop team-members update` | Update Team Member |
21
+
22
+ Run `whop team-members <command> --help` for options, or `whop team-members <command> --schema` for full argument details.
@@ -14,7 +14,8 @@ Use the Users API to search for users, retrieve or update profiles, and check wh
14
14
  | Command | Description |
15
15
  |---------|-------------|
16
16
  | `whop users list` | List Users |
17
- | `whop users me` | Update Current User |
17
+ | `whop users me` | Retrieve Current User |
18
+ | `whop users update-me` | Update Current User |
18
19
  | `whop users get` | Retrieve User |
19
20
  | `whop users update` | Update User |
20
21
  | `whop users access` | Check User Access |