@whop/cli 0.0.3 → 0.0.5
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 +25 -2
- package/dist/api-NBD5G47Q.js +16 -0
- package/dist/api-NBD5G47Q.js.map +1 -0
- package/dist/chunk-O66TV7ZF.js +30364 -0
- package/dist/chunk-O66TV7ZF.js.map +1 -0
- package/dist/index.js +1800 -20551
- package/dist/index.js.map +1 -1
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -27,6 +27,7 @@ node packages/cli/dist/index.js --help
|
|
|
27
27
|
## Try it
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
+
whop # quickstart if you are not logged in
|
|
30
31
|
whop --help # human-readable help
|
|
31
32
|
whop auth login --help # help for a specific command
|
|
32
33
|
whop auth status # who am I?
|
|
@@ -34,6 +35,18 @@ whop auth status --format json # structured output for scripts/agents
|
|
|
34
35
|
whop --llms # agent-readable command manifest
|
|
35
36
|
```
|
|
36
37
|
|
|
38
|
+
## Start selling
|
|
39
|
+
|
|
40
|
+
`whop quickstart` is the single front door. In a terminal it checks your account and walks you from zero to a shareable checkout link; pass flags to do it in one shot.
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
whop quickstart # guided: name your product, set a price, get a checkout link
|
|
44
|
+
whop quickstart --title "My Course" --price 9.99 --billing_period monthly # one-shot
|
|
45
|
+
whop quickstart --format json # agents: a read-only status check (never mutates unless you pass creation flags)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Power users can drive each resource directly — `whop products`, `whop plans`, `whop checkout-configurations` — and `whop link <prod_xxx>` sets a default product for the current directory.
|
|
49
|
+
|
|
37
50
|
## Authentication
|
|
38
51
|
|
|
39
52
|
Log in with a Whop **API key** (create one in your dashboard under **Developer → API keys**). Credentials are stored in your **OS keychain** (macOS Keychain, Windows Credential Manager, libsecret on Linux) — never in a plaintext file. Non-secret profile metadata lives in `~/.config/whop/config.json`.
|
|
@@ -47,7 +60,17 @@ whop auth switch [name] # switch the active profile (interactive picker if om
|
|
|
47
60
|
whop auth logout [name] # remove a profile (defaults to the active one)
|
|
48
61
|
```
|
|
49
62
|
|
|
50
|
-
You can keep **multiple profiles** (e.g. one per
|
|
63
|
+
You can keep **multiple profiles** (e.g. one per account) and switch between them. `whop login` derives a profile name from the account; pass `--profile <name>` to choose your own.
|
|
64
|
+
|
|
65
|
+
## Quickstart
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
whop quickstart
|
|
69
|
+
whop quickstart --account-id biz_xxx --product-id prod_xxx
|
|
70
|
+
whop quickstart --title "My Course" --price 9.99 --billing-period monthly
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Quickstart installs Whop skills and the MCP server for Claude Desktop, checks your business account, product, and plan setup, then returns a checkout link when one is available. When more than one business account or product is visible, it asks you to choose instead of guessing.
|
|
51
74
|
|
|
52
75
|
### Non-interactive (CI / agents)
|
|
53
76
|
|
|
@@ -76,7 +99,7 @@ whop accounts create --email x@y.com # create a connected account
|
|
|
76
99
|
whop accounts update <id> --title "Acme" # update account fields
|
|
77
100
|
```
|
|
78
101
|
|
|
79
|
-
An **account** is a
|
|
102
|
+
An **account** is either a business account or a connected account. Business accounts are top-level; connected accounts are child accounts under a parent business API key. See `whop accounts <command> --help` for all available options.
|
|
80
103
|
|
|
81
104
|
## Adding commands
|
|
82
105
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
createWhopFetch,
|
|
5
|
+
filterSpecByTag,
|
|
6
|
+
native_spec_default,
|
|
7
|
+
resolveActiveCompanyId
|
|
8
|
+
} from "./chunk-O66TV7ZF.js";
|
|
9
|
+
import "./chunk-TZPTBY4K.js";
|
|
10
|
+
export {
|
|
11
|
+
createWhopFetch,
|
|
12
|
+
filterSpecByTag,
|
|
13
|
+
native_spec_default as nativeSpec,
|
|
14
|
+
resolveActiveCompanyId
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=api-NBD5G47Q.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|