@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Whop CLI
2
2
 
3
- `whop` — sell on Whop from your terminal. Create products, set pricing, and get a shareable checkout link without leaving your shell.
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 walks you to a shareable checkout link.
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: