@whop/cli 0.11.0 → 0.13.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 +20 -0
- package/dist/index.js +3825 -1303
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/skills/whop-ad-groups/SKILL.md +3 -1
- package/skills/whop-bounties/SKILL.md +1 -0
- package/skills/whop-partners/SKILL.md +3 -3
- package/skills/whop-social-accounts/SKILL.md +2 -1
package/README.md
CHANGED
|
@@ -89,6 +89,17 @@ whop apps logs app_xxxxxxxx --level error
|
|
|
89
89
|
whop apps logs app_xxxxxxxx --query "checkout"
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
+
## Create file uploads
|
|
93
|
+
|
|
94
|
+
Create a file record to receive the presigned upload URL and headers, then retrieve its current status:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
whop files create --filename "banner.png"
|
|
98
|
+
whop files get file_xxxxxxxxxxxxx
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Upload the file's bytes to the returned `upload_url` using its `upload_headers`. The response from `whop files get` includes the file URL once the upload is ready.
|
|
102
|
+
|
|
92
103
|
## Run ads
|
|
93
104
|
|
|
94
105
|
Generate a creative, then create the campaign, ad group, and ad in one command — structured flags take JSON strings:
|
|
@@ -117,6 +128,15 @@ whop skills add # generate agent skills
|
|
|
117
128
|
|
|
118
129
|
For OAuth, run `whop login --method oauth --format jsonl` and show the emitted URL to the user. For unattended automation, set `WHOP_API_KEY` instead (create one under **Developer → API keys**).
|
|
119
130
|
|
|
131
|
+
## Invocation logs
|
|
132
|
+
|
|
133
|
+
Every run appends one JSON line — timestamp, arguments (secrets redacted), exit code, duration — to `~/.config/whop/logs/audit-YYYY-MM-DD.jsonl` so you can retrace what the CLI did when debugging. Logs older than 7 days are deleted automatically.
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
WHOP_CLI_AUDIT_RETENTION_DAYS=30 whop … # keep logs longer
|
|
137
|
+
WHOP_CLI_AUDIT_LOG=0 whop … # disable logging
|
|
138
|
+
```
|
|
139
|
+
|
|
120
140
|
## Updating
|
|
121
141
|
|
|
122
142
|
The CLI keeps itself up to date. To update manually, run `whop upgrade`.
|