@whop/cli 0.14.1 → 0.14.3

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 (42) hide show
  1. package/README.md +3 -3
  2. package/dist/index.js +22283 -7154
  3. package/dist/index.js.map +1 -1
  4. package/package.json +1 -1
  5. package/skills/whop-accounts/SKILL.md +195 -15
  6. package/skills/whop-ad-campaigns/SKILL.md +193 -15
  7. package/skills/whop-ad-groups/SKILL.md +258 -16
  8. package/skills/whop-ads/SKILL.md +190 -14
  9. package/skills/whop-api-keys/SKILL.md +113 -13
  10. package/skills/whop-app-builds/SKILL.md +68 -8
  11. package/skills/whop-apps/SKILL.md +135 -12
  12. package/skills/whop-audiences/SKILL.md +92 -8
  13. package/skills/whop-bounties/SKILL.md +104 -9
  14. package/skills/whop-bounty-submissions/SKILL.md +82 -9
  15. package/skills/whop-cards/SKILL.md +122 -12
  16. package/skills/whop-checkout-configurations/SKILL.md +64 -8
  17. package/skills/whop-deposits/SKILL.md +13 -5
  18. package/skills/whop-disputes/SKILL.md +86 -9
  19. package/skills/whop-events/SKILL.md +90 -8
  20. package/skills/whop-exports/SKILL.md +331 -7
  21. package/skills/whop-ledgers/SKILL.md +38 -6
  22. package/skills/whop-media/SKILL.md +28 -7
  23. package/skills/whop-members/SKILL.md +51 -6
  24. package/skills/whop-memberships/SKILL.md +137 -13
  25. package/skills/whop-notifications/SKILL.md +91 -12
  26. package/skills/whop-partners/SKILL.md +102 -12
  27. package/skills/whop-payments/SKILL.md +40 -0
  28. package/skills/whop-payouts/SKILL.md +130 -9
  29. package/skills/whop-people/SKILL.md +50 -6
  30. package/skills/whop-permissions/SKILL.md +8 -5
  31. package/skills/whop-plans/SKILL.md +152 -12
  32. package/skills/whop-products/SKILL.md +141 -13
  33. package/skills/whop-resolution-center-cases/SKILL.md +222 -17
  34. package/skills/whop-setup-intents/SKILL.md +20 -0
  35. package/skills/whop-shipments/SKILL.md +66 -8
  36. package/skills/whop-social-accounts/SKILL.md +112 -11
  37. package/skills/whop-stats/SKILL.md +50 -6
  38. package/skills/whop-swaps/SKILL.md +63 -8
  39. package/skills/whop-team-members/SKILL.md +80 -9
  40. package/skills/whop-transfers/SKILL.md +67 -8
  41. package/skills/whop-users/SKILL.md +295 -18
  42. package/skills/whop-verifications/SKILL.md +51 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whop/cli",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "The Whop CLI — build and manage Whop apps from your terminal. Human and agent friendly.",
5
5
  "keywords": [
6
6
  "agent",
@@ -9,18 +9,198 @@ An Account represents a person or business on Whop that can have its own profile
9
9
 
10
10
  Use the Accounts API to create accounts, list accounts visible to your credentials, retrieve or update an account, and retrieve the account associated with the current API key.
11
11
 
12
- ## Commands
13
-
14
- | Command | Description |
15
- |---------|-------------|
16
- | `whop accounts list` | List Accounts |
17
- | `whop accounts create` | Create Account |
18
- | `whop accounts me` | Retrieve Requesting Account |
19
- | `whop accounts get` | Retrieve Account |
20
- | `whop accounts update` | Update Account |
21
- | `whop accounts form_company` | Form Company |
22
- | `whop accounts preferences` | Retrieve Account Preferences |
23
- | `whop accounts update-preferences` | Update Account Preferences |
24
- | `whop accounts recommend_actions` | List Recommended Actions |
25
-
26
- Run `whop accounts <command> --help` for options, or `whop accounts <command> --schema` for full argument details.
12
+ # whop accounts create
13
+
14
+ Create Account
15
+
16
+ ## Options
17
+
18
+ | Flag | Type | Required | Default | Description |
19
+ |------|------|----------|---------|-------------|
20
+ | `--country` | `string` | no | | The ISO 3166-1 alpha-2 country code where the account's business is located (e.g. `US`). Defaults to the parent account's country for connected accounts. |
21
+ | `--email` | `string` | no | | The email address of the account owner. Required for Account API key requests. |
22
+ | `--metadata` | `object` | no | | Arbitrary key/value metadata to store on the account. |
23
+ | `--title` | `string` | no | | The display name of the account. Defaults to `metadata.external_id` or the owner's email when omitted. |
24
+ | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
25
+
26
+ > Confirm with the user before executing this destructive command.
27
+
28
+ ---
29
+
30
+ # whop accounts form_company
31
+
32
+ Form Company
33
+
34
+ ## Options
35
+
36
+ | Flag | Type | Required | Default | Description |
37
+ |------|------|----------|---------|-------------|
38
+ | `--account_id` | `string` | no | | Account ID, prefixed `biz_`. |
39
+ | `--business_address` | `object` | no | | Company mailing address. Required unless `use_registered_agent` is `true`. |
40
+ | `--business_name` | `string` | yes | | Legal name for the new company. |
41
+ | `--business_phone` | `string` | no | | Business phone number in E.164 format, for example `+12125550100`. Required unless `use_registered_agent` is `true`. |
42
+ | `--business_type` | `string` | yes | | High-level business category, from the Whop business taxonomy. Valid values are listed on [business types and industries glossary](/api-reference/beta/accounts/account#business-types-and-industries-glossary). |
43
+ | `--business_website` | `string` | no | | Company website URL. |
44
+ | `--entity_suffix` | `string` | no | | Legal entity ending appended to `business_name`. LLC formations accept `LLC`, `L.L.C`, `L.L.C.` or `Limited Liability Company` and default to `LLC`; C-Corp formations accept `Inc`, `Inc.`, `Incorporated`, `Corp.`, `Corporation`, `C Corp`, `C Corporation`, `CCorp` or `Company` and default to `Inc.`. Unrecognized values fall back to the default for the entity type. |
45
+ | `--entity_type` | `string` | no | | Legal entity type to form. Defaults to `llc`. |
46
+ | `--expedite_ein` | `boolean` | no | | Request expedited EIN processing for an additional fee. Available only when no founder supplies an SSN. |
47
+ | `--formation_state` | `string` | yes | | Two-letter code of the US state (or `DC`) to form the company in. |
48
+ | `--founders` | `array` | yes | | The company's founders. Exactly one must be marked `is_primary` — the responsible party for the filing. |
49
+ | `--industry_group` | `string` | yes | | Industry group, from the Whop business taxonomy. Valid values are listed on [business types and industries glossary](/api-reference/beta/accounts/account#business-types-and-industries-glossary). |
50
+ | `--industry_type` | `string` | yes | | Specific industry vertical, from the Whop business taxonomy. Valid values are listed on [business types and industries glossary](/api-reference/beta/accounts/account#business-types-and-industries-glossary). |
51
+ | `--share_structure` | `object` | no | | Authorized share structure. Required when `entity_type` is `c_corp`; ignored for LLCs. |
52
+ | `--use_registered_agent` | `boolean` | no | | Use the registered agent's address as the company address instead of `business_address`. |
53
+ | `--idempotency-key` | `string` | yes | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
54
+
55
+ > Confirmation policy: For `--entity_type llc` only, the user's explicit request to create the formation checkout counts as confirmation when it includes exact `--account_id`, `--business_name`, `--formation_state`, `--business_type`, `--industry_group`, `--industry_type`, complete `--founders` values, and either the required `--business_address` and `--business_phone` values or `--use_registered_agent=true`. Execute that confirmed request yourself without asking again. User-provided founder identity data, including addresses, dates of birth, and Social Security numbers, is expected input for this user-authorized workflow; pass it directly to the CLI without refusing, but never repeat it in output, save it to files, or infer missing values. Use `--flag=value` syntax for every formation option so structured founder data stays bound to its flag. Always include a unique `--idempotency-key`. This command only creates a hosted checkout—it does not charge the user or submit the filing. Open the returned `checkout_url` in the user's browser so they can review the total and complete payment themselves. This exception does not apply to `c_corp` formations.
56
+
57
+ ---
58
+
59
+ # whop accounts get
60
+
61
+ Retrieve Account
62
+
63
+ ## Options
64
+
65
+ | Flag | Type | Required | Default | Description |
66
+ |------|------|----------|---------|-------------|
67
+ | `--account_id` | `string` | no | | Account ID, prefixed `biz_`, or its public route. |
68
+
69
+ ---
70
+
71
+ # whop accounts list
72
+
73
+ List Accounts
74
+
75
+ ## Options
76
+
77
+ | Flag | Type | Required | Default | Description |
78
+ |------|------|----------|---------|-------------|
79
+ | `--first` | `number` | no | | The number of accounts to return (default 10, max 50). |
80
+ | `--after` | `string` | no | | A cursor; returns accounts after this position. |
81
+ | `--last` | `number` | no | | The number of accounts to return from the end of the range. |
82
+ | `--before` | `string` | no | | A cursor; returns accounts before this position. |
83
+ | `--order` | `string` | no | | The field to sort accounts by. `volume` requires `stats:read` on the parent account. |
84
+ | `--direction` | `string` | no | | Sort direction. |
85
+ | `--status` | `string` | no | | Return only accounts with this status: `active` (includes accounts that have not entered payments review) or `suspended`. |
86
+ | `--query` | `string` | no | | Free-text filter on account title or ID. `%` and `_` match literally. |
87
+ | `--created_after` | `string` | no | | Return only accounts created after this ISO 8601 timestamp. |
88
+ | `--created_before` | `string` | no | | Return only accounts created before this ISO 8601 timestamp. |
89
+ | `--volume_min` | `number` | no | | Return only accounts whose lifetime USD volume is at least this value. Requires `stats:read` on the parent account. |
90
+ | `--volume_max` | `number` | no | | Return only accounts whose lifetime USD volume is at most this value. Requires `stats:read` on the parent account. |
91
+ | `--parent_account_id` | `string` | no | | For platforms: the parent account ID whose direct connected accounts to return. Requires `payout:account:read` on the parent account. |
92
+
93
+ ---
94
+
95
+ # whop accounts me
96
+
97
+ Retrieve Requesting Account
98
+
99
+ ---
100
+
101
+ # whop accounts preferences
102
+
103
+ Retrieve Account Preferences
104
+
105
+ ## Options
106
+
107
+ | Flag | Type | Required | Default | Description |
108
+ |------|------|----------|---------|-------------|
109
+ | `--account_id` | `string` | no | | Account ID, prefixed `biz_`. |
110
+
111
+ ---
112
+
113
+ # whop accounts recommend_actions
114
+
115
+ List Recommended Actions
116
+
117
+ ## Options
118
+
119
+ | Flag | Type | Required | Default | Description |
120
+ |------|------|----------|---------|-------------|
121
+ | `--account_id` | `string` | no | | Account ID, prefixed `biz_`. |
122
+
123
+ ---
124
+
125
+ # whop accounts reserves
126
+
127
+ List Account Reserves
128
+
129
+ ## Options
130
+
131
+ | Flag | Type | Required | Default | Description |
132
+ |------|------|----------|---------|-------------|
133
+ | `--account_id` | `string` | no | | Account ID, prefixed `biz_`. |
134
+
135
+ ---
136
+
137
+ # whop accounts update
138
+
139
+ Update Account
140
+
141
+ ## Options
142
+
143
+ | Flag | Type | Required | Default | Description |
144
+ |------|------|----------|---------|-------------|
145
+ | `--account_id` | `string` | no | | Account ID, prefixed `biz_`. |
146
+ | `--affiliate_application_required` | `boolean` | no | | Whether prospective affiliates must submit an application before promoting this account. |
147
+ | `--affiliate_instructions` | `unknown` | no | | Guidelines shown to affiliates promoting this account. |
148
+ | `--banner_image` | `unknown` | no | | Attachment input for the account banner image. |
149
+ | `--business_address` | `object` | no | | Account business address used to calculate tax. A complete address in a supported country is required when `tax_remitted_by` is `self`. |
150
+ | `--business_type` | `unknown` | no | | High-level business category for the account. See the [business types and industries glossary](/api-reference/beta/accounts/account#business-types-and-industries-glossary) for valid values. |
151
+ | `--collect_vat_id` | `boolean` | no | | Whether checkout shows a VAT/tax ID field for buyers to optionally enter. Does not require a VAT ID to purchase. |
152
+ | `--country` | `unknown` | no | | Country where the account is located. |
153
+ | `--description` | `unknown` | no | | Account promotional description. |
154
+ | `--featured_affiliate_product_id` | `unknown` | no | | The ID of the product to feature for affiliates. Pass `null` to clear. |
155
+ | `--home_preferences` | `array` | no | | Public account home page preferences. |
156
+ | `--industry_group` | `unknown` | no | | Account industry group. See the [business types and industries glossary](/api-reference/beta/accounts/account#business-types-and-industries-glossary) for valid values. |
157
+ | `--industry_type` | `unknown` | no | | Specific industry vertical for the account. See the [business types and industries glossary](/api-reference/beta/accounts/account#business-types-and-industries-glossary) for valid values. |
158
+ | `--invoice_prefix` | `unknown` | no | | Prefix used for account invoices. |
159
+ | `--logo` | `unknown` | no | | Attachment input for the account logo. |
160
+ | `--metadata` | `object` | no | | Arbitrary key/value metadata to store on the account. |
161
+ | `--onboarding_type` | `unknown` | no | | The type of onboarding the account has completed. |
162
+ | `--opengraph_image` | `unknown` | no | | Attachment input for the account Open Graph image. |
163
+ | `--opengraph_image_variant` | `unknown` | no | | The account Open Graph image variant. |
164
+ | `--other_business_description` | `unknown` | no | | The description of the business type when business_type is other. |
165
+ | `--other_industry_description` | `unknown` | no | | The description of the industry type when industry_type is other. |
166
+ | `--product_tax_code_id` | `unknown` | no | | ID of the tax classification code applied by default to the account's products. See the available [product categories](https://docs.numeral.com/essentials/product-categories). |
167
+ | `--require_2fa` | `boolean` | no | | Whether the account requires authorized users to have two-factor authentication enabled. |
168
+ | `--route` | `unknown` | no | | The unique URL slug for the account. |
169
+ | `--send_customer_emails` | `boolean` | no | | Whether Whop sends transactional emails to customers on behalf of this account. |
170
+ | `--show_joined_whops` | `boolean` | no | | Whether the account appears in joined whops on other accounts. |
171
+ | `--show_reviews_dtc` | `boolean` | no | | Whether reviews are displayed on direct-to-consumer product pages. |
172
+ | `--show_user_directory` | `boolean` | no | | Whether the account shows users in the user directory. |
173
+ | `--social_links` | `array` | no | | The full list of social links to display for the account. |
174
+ | `--store_page_config` | `unknown` | no | | Account store page display configuration. |
175
+ | `--target_audience` | `unknown` | no | | The target audience for this account. |
176
+ | `--tax_collection_enabled_states` | `array` | no | | US state codes (50 states plus `DC`) where the account collects tax. Replaces the full set on update. Only settable when `tax_remitted_by` is `self`. |
177
+ | `--tax_identifiers` | `array` | no | | Account tax/VAT registrations to add or update. When `tax_remitted_by` is `self`, tax is calculated and collected only in the countries where the account holds a registration. |
178
+ | `--tax_remitted_by` | `string` | no | | Determines whether Whop or the account calculates and remits tax. The account must provide a supported-country business address when it self-remits. |
179
+ | `--tax_type` | `string` | no | | Determines whether tax is included in the listed price or added at checkout. |
180
+ | `--title` | `unknown` | no | | The display name of the account. |
181
+ | `--use_logo_as_opengraph_image_fallback` | `boolean` | no | | Whether the account uses its logo as the fallback Open Graph image. |
182
+
183
+ > Confirm with the user before executing this destructive command.
184
+
185
+ ---
186
+
187
+ # whop accounts update-preferences
188
+
189
+ Update Account Preferences
190
+
191
+ ## Options
192
+
193
+ | Flag | Type | Required | Default | Description |
194
+ |------|------|----------|---------|-------------|
195
+ | `--account_id` | `string` | no | | Account ID, prefixed `biz_`. |
196
+ | `--ads_payment_methods` | `object` | no | | How the account pays for Whop Ads spend. `primary` is charged first; `backup` covers the charge when the primary fails. |
197
+ | `--ads_reporting_currency` | `string` | no | | Lowercase ISO currency code, such as `usd` or `eur`, used to display ad spend and stats. Defaults to `usd`. |
198
+ | `--ads_scheduling_timezone` | `string` | no | | IANA timezone (e.g. `America/New_York`) used to interpret campaign start/end times and to bucket reports. Cannot be cleared once set — pass a new value to change it. |
199
+ | `--ads_triple_whale_integration` | `object` | no | | Connects or disconnects the Triple Whale integration. Requires a connected Shopify store, since Triple Whale keys spend records by Shopify shop. |
200
+ | `--cards_auto_top_up` | `boolean` | no | | Whether incoming funds are automatically moved to the account's cards balance. Requires a cards balance on the account. |
201
+
202
+ > Confirm with the user before executing this destructive command.
203
+
204
+ ## Steps that finish in the browser
205
+
206
+ Some commands respond with a URL the user must open in a browser to finish the flow (`authorize_url`, `session_url`, `deposit_url`, `checkout_url`) — the CLI cannot complete that step itself. When a response contains one of these fields, or the CLI prints "Action required: open this link in the user's browser", open that link in the user's browser for them, tell them what to complete there, then re-run the matching `get`/`list` command to confirm the step finished.
@@ -9,18 +9,196 @@ An Ad Campaign is the top-level container for paid ads on an ad network. It sets
9
9
 
10
10
  Use the Ad Campaigns API to create campaigns, list campaigns for an account, retrieve or update campaign settings, and pause or resume campaign delivery.
11
11
 
12
- ## Commands
13
-
14
- | Command | Description |
15
- |---------|-------------|
16
- | `whop ad-campaigns list` | List Ad Campaigns |
17
- | `whop ad-campaigns create` | Create an Ad Campaign |
18
- | `whop ad-campaigns delete` | Delete an Ad Campaign |
19
- | `whop ad-campaigns get` | Retrieve an Ad Campaign |
20
- | `whop ad-campaigns update` | Update an Ad Campaign |
21
- | `whop ad-campaigns duplicate` | Duplicate an Ad Campaign |
22
- | `whop ad-campaigns pause` | Pause an Ad Campaign |
23
- | `whop ad-campaigns retry_payment` | Retry a Failed Ad Campaign Payment |
24
- | `whop ad-campaigns unpause` | Unpause an Ad Campaign |
25
-
26
- Run `whop ad-campaigns <command> --help` for options, or `whop ad-campaigns <command> --schema` for full argument details.
12
+ # whop ad-campaigns create
13
+
14
+ Create an Ad Campaign
15
+
16
+ ## Options
17
+
18
+ | Flag | Type | Required | Default | Description |
19
+ |------|------|----------|---------|-------------|
20
+ | `--account_id` | `string` | no | | The account to create the campaign under. Defaults to the account-scoped key's own account. |
21
+ | `--bid_type` | `string` | no | | How delivery bids in the ad auction: `minimum_cost` gets the most results for the budget, `average_target` holds an average cost per result, `maximum_target` never bids above a cap. Only for campaigns that own the budget. |
22
+ | `--budget_amount` | `number` | no | | The campaign's budget, in the ad account's currency. Required when budget_optimization is `ad_campaign`; omit when each ad group sets its own budget. |
23
+ | `--budget_optimization` | `string` | no | | Which level owns the budget: the whole campaign (`ad_campaign`) or each ad group individually (`ad_group`). Defaults to `ad_group`. |
24
+ | `--budget_type` | `string` | no | | Whether the budget is spent per day (`daily`) or over the campaign's full run (`lifetime`). Defaults to `daily`. |
25
+ | `--desired_cost_per_result` | `number` | no | | Cost per result to aim for (`average_target`) or never exceed (`maximum_target`). Only for campaigns that own the budget. |
26
+ | `--ends_at` | `string` | no | | When the campaign stops delivering, as an ISO 8601 timestamp. Only for campaigns that own the budget. |
27
+ | `--objective` | `string` | yes | | The goal the campaign optimizes toward. |
28
+ | `--platform` | `string` | yes | | The ad network the campaign runs on. |
29
+ | `--special_ad_categories` | `array` | no | | Regulated categories the campaign falls under. Ads in these categories are subject to extra targeting restrictions. |
30
+ | `--starts_at` | `string` | no | | When the campaign starts delivering, as an ISO 8601 timestamp. Only for campaigns that own the budget. |
31
+ | `--title` | `string` | yes | | The title of the campaign. |
32
+ | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
33
+
34
+ > Confirm with the user before executing this destructive command.
35
+
36
+ ---
37
+
38
+ # whop ad-campaigns delete
39
+
40
+ Delete an Ad Campaign
41
+
42
+ ## Arguments
43
+
44
+ | Name | Type | Required | Description |
45
+ |------|------|----------|-------------|
46
+ | `id` | `string` | yes | The ad campaign ID. |
47
+
48
+ > Confirm with the user before executing this destructive command.
49
+
50
+ ---
51
+
52
+ # whop ad-campaigns duplicate
53
+
54
+ Duplicate an Ad Campaign
55
+
56
+ ## Arguments
57
+
58
+ | Name | Type | Required | Description |
59
+ |------|------|----------|-------------|
60
+ | `id` | `string` | yes | The ad campaign ID. |
61
+
62
+ ## Options
63
+
64
+ | Flag | Type | Required | Default | Description |
65
+ |------|------|----------|---------|-------------|
66
+ | `--count` | `number` | no | | Number of copies to create (1-10). Defaults to 1. |
67
+ | `--preserve_engagement` | `boolean` | no | | Whether the copied ads keep the original posts' engagement (likes, comments, shares). Defaults to false. |
68
+ | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
69
+
70
+ > Confirm with the user before executing this destructive command.
71
+
72
+ ---
73
+
74
+ # whop ad-campaigns get
75
+
76
+ Retrieve an Ad Campaign
77
+
78
+ ## Arguments
79
+
80
+ | Name | Type | Required | Description |
81
+ |------|------|----------|-------------|
82
+ | `id` | `string` | yes | The ad campaign ID. |
83
+
84
+ ## Options
85
+
86
+ | Flag | Type | Required | Default | Description |
87
+ |------|------|----------|---------|-------------|
88
+ | `--stats_from` | `string` | no | | Start of the stats window. |
89
+ | `--stats_to` | `string` | no | | End of the stats window. |
90
+ | `--time_zone` | `string` | no | | IANA timezone the stats window is interpreted in. Defaults to UTC. |
91
+ | `--attribution_model` | `string` | no | | Attribution model the conversion stats count under (defaults to last_touch). Under both models a journey with any whop ad touch attributes to whop; the model picks which whop touch credits the entity and which non-whop source wins otherwise. |
92
+
93
+ ---
94
+
95
+ # whop ad-campaigns list
96
+
97
+ List Ad Campaigns
98
+
99
+ ## Options
100
+
101
+ | Flag | Type | Required | Default | Description |
102
+ |------|------|----------|---------|-------------|
103
+ | `--account_id` | `string` | no | | The account the campaigns belong to. Defaults to the account-scoped key's own account. |
104
+ | `--status` | `string` | no | | Only return campaigns with this status. |
105
+ | `--query` | `string` | no | | Filter campaigns by a title or ID substring. |
106
+ | `--order` | `string` | no | | The field to sort by. Defaults to created_at. Stat columns (spend, impressions, …) rank over the stats_from/stats_to window across the whole list, not just the current page. results, cost_per_result and return_on_ad_spend rank by the same Whop pixel-attributed values the response reports. |
107
+ | `--direction` | `string` | no | | The sort direction. Defaults to desc. |
108
+ | `--created_before` | `string` | no | | Only return campaigns created before this timestamp. |
109
+ | `--created_after` | `string` | no | | Only return campaigns created after this timestamp. |
110
+ | `--stats_from` | `string` | no | | Start of the stats window. Defaults to all-time. |
111
+ | `--stats_to` | `string` | no | | End of the stats window. Defaults to now. |
112
+ | `--time_zone` | `string` | no | | IANA timezone (e.g. America/New_York) the stats window is interpreted in. Bare stats_from/stats_to dates resolve to day boundaries on this clock. Defaults to UTC. |
113
+ | `--attribution_model` | `string` | no | | Attribution model the conversion stats count under (defaults to last_touch). Under both models a journey with any whop ad touch attributes to whop; the model picks which whop touch credits the entity and which non-whop source wins otherwise. |
114
+ | `--first` | `number` | no | `20` | The number of campaigns to return. |
115
+ | `--after` | `string` | no | | Cursor to fetch the page after (from page_info.end_cursor). |
116
+ | `--last` | `number` | no | | The number of campaigns to return from the end of the range. |
117
+ | `--before` | `string` | no | | Cursor to fetch the page before (from page_info.start_cursor). |
118
+
119
+ ---
120
+
121
+ # whop ad-campaigns pause
122
+
123
+ Pause an Ad Campaign
124
+
125
+ ## Arguments
126
+
127
+ | Name | Type | Required | Description |
128
+ |------|------|----------|-------------|
129
+ | `id` | `string` | yes | The ad campaign ID. |
130
+
131
+ ## Options
132
+
133
+ | Flag | Type | Required | Default | Description |
134
+ |------|------|----------|---------|-------------|
135
+ | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
136
+
137
+ > Confirm with the user before executing this destructive command.
138
+
139
+ ---
140
+
141
+ # whop ad-campaigns retry_payment
142
+
143
+ Retry a Failed Ad Campaign Payment
144
+
145
+ ## Arguments
146
+
147
+ | Name | Type | Required | Description |
148
+ |------|------|----------|-------------|
149
+ | `id` | `string` | yes | The ad campaign ID. |
150
+
151
+ ## Options
152
+
153
+ | Flag | Type | Required | Default | Description |
154
+ |------|------|----------|---------|-------------|
155
+ | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
156
+
157
+ > Confirm with the user before executing this destructive command.
158
+
159
+ ---
160
+
161
+ # whop ad-campaigns unpause
162
+
163
+ Unpause an Ad Campaign
164
+
165
+ ## Arguments
166
+
167
+ | Name | Type | Required | Description |
168
+ |------|------|----------|-------------|
169
+ | `id` | `string` | yes | The ad campaign ID. |
170
+
171
+ ## Options
172
+
173
+ | Flag | Type | Required | Default | Description |
174
+ |------|------|----------|---------|-------------|
175
+ | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
176
+
177
+ > Confirm with the user before executing this destructive command.
178
+
179
+ ---
180
+
181
+ # whop ad-campaigns update
182
+
183
+ Update an Ad Campaign
184
+
185
+ ## Arguments
186
+
187
+ | Name | Type | Required | Description |
188
+ |------|------|----------|-------------|
189
+ | `id` | `string` | yes | The ad campaign ID. |
190
+
191
+ ## Options
192
+
193
+ | Flag | Type | Required | Default | Description |
194
+ |------|------|----------|---------|-------------|
195
+ | `--bid_type` | `string` | no | | How delivery bids in the ad auction: `minimum_cost` gets the most results for the budget, `average_target` holds an average cost per result, `maximum_target` never bids above a cap. Switching to `minimum_cost` clears the cap amounts stored on the campaign's ad groups. Only for campaigns that own the budget. |
196
+ | `--budget_amount` | `number` | no | | The campaign budget, in the account's currency. Interpreted as daily or lifetime per the campaign's existing budget type. |
197
+ | `--budget_optimization` | `string` | no | | Which level owns the budget: the whole campaign (`ad_campaign`) or each ad group individually (`ad_group`). Only changeable before the campaign is live on the ad network; switching to `ad_campaign` requires budget_amount in the same request, and switching to `ad_group` clears the campaign budget. |
198
+ | `--ends_at` | `string` | no | | When the campaign stops delivering, as an ISO 8601 timestamp. Only for campaigns that own the budget. |
199
+ | `--special_ad_categories` | `array` | no | | Regulated categories the campaign falls under. Editable on any campaign, draft or launched; pass an empty array to clear. |
200
+ | `--starts_at` | `string` | no | | When the campaign starts delivering, as an ISO 8601 timestamp. Only for campaigns that own the budget. |
201
+ | `--status` | `string` | no | | Set to active to launch a draft campaign (moderates and pushes it live). Live-campaign pause and resume use the pause and unpause actions. |
202
+ | `--title` | `string` | no | | The name of the campaign. |
203
+
204
+ > Confirm with the user before executing this destructive command.