@whop/cli 0.26.0 → 0.28.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 +4 -3
- package/dist/index.js +3133 -1787
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/whop/SKILL.md +2 -2
- package/skills/whop/references/websites.md +19 -6
package/package.json
CHANGED
package/skills/whop/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: whop
|
|
3
|
-
description: "Run a business on Whop from the `whop` CLI: economic intelligence for business next steps, websites on
|
|
3
|
+
description: "Run a business on Whop from the `whop` CLI: economic intelligence for business next steps, websites on whop.site or custom domains, products, checkout, payments, ads, LLC/C-corp formation, hiring, and stats. Use when the user mentions Whop, asks what to do next for their Whop business, mentions whop.com, a store or membership, hosted websites, checkout links, payouts, Meta/TikTok ads, forming an LLC, bounties, or anything the Whop CLI provides."
|
|
4
4
|
requires_bin: whop
|
|
5
5
|
command: whop
|
|
6
6
|
---
|
|
@@ -42,7 +42,7 @@ When the caller asks how to grow, improve their business, or decide what to do n
|
|
|
42
42
|
| --- | --- | --- |
|
|
43
43
|
| Sign in / pick a business | `whop login`, `whop quickstart`, `whop auth account` | — |
|
|
44
44
|
| Find or generate business next steps | `whop economic-intelligence list`, `whop economic-intelligence create` | Find the best next steps above |
|
|
45
|
-
| Ship a website (
|
|
45
|
+
| Ship a website (whop.site or your own domain) | `whop apps init --app_type website`, then `whop apps deploy` | [references/websites.md](references/websites.md) |
|
|
46
46
|
| Sell | `whop products create`, `whop plans create`, `whop checkout-configurations create` | — |
|
|
47
47
|
| Customers | `whop members`, `whop memberships` | — |
|
|
48
48
|
| Run ads | `whop media generate`, `whop ads create`, `whop ad-campaigns update` | [references/ads.md](references/ads.md) |
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
# Websites and apps
|
|
1
|
+
# Websites and apps
|
|
2
2
|
|
|
3
3
|
Read this before `whop apps init` or `whop apps deploy`. Flag lists live in `whop apps <command> --help` — do not invent them.
|
|
4
4
|
|
|
5
|
-
`--app_type` is `website` (visitors browse
|
|
5
|
+
`--app_type` is `website` (visitors browse it at its domains) or `b2c_app` (creators install it). Ask; do not guess. A website cannot be turned back into an app.
|
|
6
6
|
|
|
7
7
|
## New website
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
whop apps init --app_type website --name "Acme" --
|
|
10
|
+
whop apps init --app_type website --name "Acme" --domain acme
|
|
11
11
|
whop apps deploy
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
`--domain` takes a whop.site name (`acme` → `acme.whop.site`) or a domain the account already has. It defaults to the name's whop.site address. A custom domain not yet on the account is bought when it can be registered — this only creates a purchase link, nothing is charged — and otherwise connected by DNS verification. `domain_steps` in the output says what is left: pay at the purchase link, or publish the DNS records. Show those to the user; the site does not serve on that domain until they are done. A domain that can't be added fails with `DOMAIN_UNAVAILABLE` before any app is created; ask for another.
|
|
15
|
+
|
|
14
16
|
Agents and scripts must pass `--app_type`. Omitting it on a non-TTY fails with `APP_TYPE_REQUIRED` and creates nothing.
|
|
15
17
|
|
|
16
|
-
`init` registers the app on Whop **before** it writes files. If it fails after that,
|
|
18
|
+
`init` registers the app on Whop **before** it writes files. If it fails after that, run the `whop apps init --app app_xxx` command the error prints — do not `create` a second app.
|
|
17
19
|
|
|
18
20
|
`--template app_xxx` only inherits `website` from the template. Any other type still needs an explicit `--app_type`.
|
|
19
21
|
|
|
@@ -26,7 +28,14 @@ whop apps deploy
|
|
|
26
28
|
|
|
27
29
|
`pull` requires git. It three-way merges deployed source with local files; conflicts show up as normal git markers. Default pull is the **production** build, not the latest preview. `--build abld_xxx` also needs `--app` (builds do not carry the app id).
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
An app that has never been deployed, such as a website created on whop.com, has nothing to pull: `pull` fails with `APP_HAS_NO_SOURCE`. Start its code instead, then deploy:
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
whop apps init --app app_xxx
|
|
35
|
+
whop apps deploy
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Code already on disk, no scaffold: `whop apps create --help`, then `whop apps deploy --app app_xxx`. Link with `--app`; never write `whop.app.json` by hand.
|
|
30
39
|
|
|
31
40
|
## Deploy, preview, promote
|
|
32
41
|
|
|
@@ -40,7 +49,11 @@ whop apps builds promote abld_xxx
|
|
|
40
49
|
|
|
41
50
|
Looks like deploy will scaffold a missing project. Actually it only ships an existing Vite app. Agents get `NOT_A_VITE_APP` with init/pull CTAs — follow those, do not invent a scaffold flag.
|
|
42
51
|
|
|
43
|
-
The project must be linked (`whop.app.json`) or you must pass `--app`.
|
|
52
|
+
The project must be linked (`whop.app.json`) or you must pass `--app`. A deploy needs somewhere to serve: any domain on the app — a whop.site address or a custom domain — will do. Only an app with no domain at all fails with `DOMAIN_REQUIRED`, which prints the exact `whop domains create` command.
|
|
53
|
+
|
|
54
|
+
## Domains
|
|
55
|
+
|
|
56
|
+
`whop apps get app_xxx` lists the app's `domains` with their status; `base_url` is where visitors land. Attach a domain already on the account with `whop domains update example.com --website '{"app_id":"app_xxx"}'`. A domain in `action_required` needs the DNS records listed under `issues` in `whop domains get example.com`; after they are added, run `whop domains check example.com`.
|
|
44
57
|
|
|
45
58
|
The app must use the `whop()` Vite plugin (`@whop/cli/vite`). Missing it fails with `NO_BUILD_ARCHIVE`.
|
|
46
59
|
|