ckweb-cli 0.2.4 → 0.5.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 +22 -8
- package/dist/index.js +679 -9
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
CLI tool for interacting with the [ClaudeKit.cc](https://claudekit.cc) API.
|
|
4
4
|
|
|
5
|
+
## Related Repositories
|
|
6
|
+
|
|
7
|
+
- **Backend / web app:** [claudekit/claudekit](https://github.com/mrgoonie/claudekit/) — local path: `/Volumes/GOON/www/claudekit/claudekit-web`
|
|
8
|
+
- Source of all `/api/admin/*` endpoints consumed by this CLI.
|
|
9
|
+
|
|
5
10
|
## Install
|
|
6
11
|
|
|
7
12
|
```bash
|
|
@@ -105,17 +110,19 @@ ckweb seo traffic "example.com"
|
|
|
105
110
|
### Admin Commands (requires admin key)
|
|
106
111
|
| Group | Commands |
|
|
107
112
|
|-------|----------|
|
|
108
|
-
| `admin orders` | list, get, complete, refund, refund-keep-access, switch-product, resend-emails, export |
|
|
109
|
-
| `admin users` | get, update-github, update-rates, set-tier, export |
|
|
110
|
-
| `admin referrals` | stats, diagnose, export, tiers-stats |
|
|
111
|
-
| `admin revenue` | stats, export, maintainer, costs, add-cost, update-cost, delete-cost, reports |
|
|
112
|
-
| `admin payouts` | list, update, export, export-detailed, request-csv |
|
|
113
|
+
| `admin orders` | list, search, get, complete, refund, refund-keep-access, switch-product (engineer_kit/marketing_kit), resend-emails, resend-github-invite, export, stats (--start, --end, --status, --provider, --vat-requested) |
|
|
114
|
+
| `admin users` | get, update, update-github, update-rates, set-tier, export, stats (--start, --end) |
|
|
115
|
+
| `admin referrals` | stats, user-stats, diagnose, export, tiers-stats |
|
|
116
|
+
| `admin revenue` | stats (--product, --no-team), export, maintainer, costs, add-cost, update-cost, delete-cost, reports |
|
|
117
|
+
| `admin payouts` | list (--search, --status, --limit, --offset), update, export, export-detailed, request-csv |
|
|
113
118
|
| `admin loyalty` | stats, blast-email |
|
|
114
|
-
| `admin blog` | create, update, delete, publish, ai-generate, ai-transform, generate-metadata, upload-url, export |
|
|
119
|
+
| `admin blog` | create (--status, --scheduled-for), update (--status, --scheduled-for), delete, publish, run-scheduler, ai-generate, ai-transform, generate-metadata, upload-url, export, categories (list/get/create/update/delete), article-categories (add/remove), tags, tag-get, tag-create, tag-update, tag-delete, article-tag-add, article-tag-remove |
|
|
115
120
|
| `admin keys` | list, create, validate, revoke, rotate |
|
|
121
|
+
| `admin licenses` | update-github |
|
|
116
122
|
| `admin invites` | list, create, get, delete, resend, accept, validate |
|
|
117
123
|
| `admin admins` | list, get, promote, demote, permissions |
|
|
118
|
-
| `admin discounts` | list, create, update, delete, export |
|
|
124
|
+
| `admin discounts` | list, create, update, delete, sync-status, export |
|
|
125
|
+
| `admin discount-groups` | list, get, create, update, delete |
|
|
119
126
|
| `admin tiers` | list |
|
|
120
127
|
|
|
121
128
|
## Authentication
|
|
@@ -183,9 +190,16 @@ pnpm install
|
|
|
183
190
|
pnpm dev # Watch mode
|
|
184
191
|
pnpm build # Production build
|
|
185
192
|
pnpm lint # Type check
|
|
186
|
-
pnpm test # Run tests
|
|
193
|
+
pnpm test # Run unit + integration tests (hermetic, no key needed)
|
|
194
|
+
pnpm test:e2e # Run e2e tests against the real claudekit API
|
|
187
195
|
```
|
|
188
196
|
|
|
197
|
+
### E2E tests
|
|
198
|
+
|
|
199
|
+
`pnpm test:e2e` builds the CLI and exercises the published binary against the real claudekit API.
|
|
200
|
+
Requires both `CKWEB_API_KEY` and `CKWEB_ADMIN_API_KEY` in `.env` (or shell env).
|
|
201
|
+
These tests run on PRs and on `main` push, and gate the npm publish step in `release.yml`.
|
|
202
|
+
|
|
189
203
|
## Releasing
|
|
190
204
|
|
|
191
205
|
### Auto bump (recommended)
|