@whop/cli 0.6.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 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-GKKJXDPK.js";
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-P7EWPZKG.js.map
20
+ //# sourceMappingURL=api-YDHSDKDV.js.map