@whop/cli 0.8.0 → 0.8.2
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 +19 -1
- package/dist/index.js +9429 -8342
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/whop-bounties/SKILL.md +20 -0
- package/skills/whop-bounty-submissions/SKILL.md +18 -0
- package/skills/whop-partners/SKILL.md +4 -4
- package/skills/whop-users/SKILL.md +1 -0
- package/skills/whop-workforce-bounties/SKILL.md +0 -19
package/README.md
CHANGED
|
@@ -38,6 +38,24 @@ Every command takes `--format json` for structured output.
|
|
|
38
38
|
|
|
39
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
40
|
|
|
41
|
+
## Authentication
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
whop login --method oauth # interactive browser login
|
|
45
|
+
whop login --method oauth --format jsonl # stream the authorization URL for an agent
|
|
46
|
+
whop login --method api-key --api-key whop_xxx # explicit API-key login
|
|
47
|
+
WHOP_API_KEY=whop_xxx whop login --method api-key # API key from the environment
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Agent OAuth recipe:
|
|
51
|
+
|
|
52
|
+
1. Run `whop login --method oauth --format jsonl` in the background with stdout redirected to a file — pipes like `| head` can buffer past the URL.
|
|
53
|
+
2. The first line is an `authorization_required` event, emitted once the local callback listener is ready. Open its `authorizationUrl` in the user's browser (e.g. `open <url>` on macOS, `xdg-open <url>` on Linux). The URL is several KB long (it carries the full scope list): pass it programmatically and never retype, truncate, or summarize it — a mangled scope list fails with `invalid_scope`.
|
|
54
|
+
3. Wait for the process to exit — the final `done` event means the profile is saved.
|
|
55
|
+
4. If the user manages more than one business, the login succeeds without picking one; set it with `whop auth account <biz_id>` (`whop auth account --list` to enumerate) — no second browser round-trip needed.
|
|
56
|
+
|
|
57
|
+
The flow redirects to `localhost:13337`, so the browser must run on the same host as the CLI (or forward that port to the CLI host). Fully remote browser authorization will require a future device login flow.
|
|
58
|
+
|
|
41
59
|
## Deploy an app
|
|
42
60
|
|
|
43
61
|
```bash
|
|
@@ -80,7 +98,7 @@ whop mcp add # register as an MCP server (e.g. Claude Desktop)
|
|
|
80
98
|
whop skills add # generate agent skills
|
|
81
99
|
```
|
|
82
100
|
|
|
83
|
-
|
|
101
|
+
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**).
|
|
84
102
|
|
|
85
103
|
## Updating
|
|
86
104
|
|