@farthershore/cli 0.14.4 → 0.14.6
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 +58 -0
- package/dist/index.js +74 -74
- package/dist/mcp.js +42 -42
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -76,6 +76,7 @@ farthershore skills recommend --format json \
|
|
|
76
76
|
| `--api-url <url>` | Override platform Core API URL |
|
|
77
77
|
| `--env <environment>` | Environment scope (use `production`/`prod`/`main`) |
|
|
78
78
|
| `--format <format>` | `json` for machine-readable output (default for non-TTY) |
|
|
79
|
+
| `--no-input` | Never prompt; use non-interactive agent-safe paths |
|
|
79
80
|
| `--version` | Show version |
|
|
80
81
|
| `--help` | Show help |
|
|
81
82
|
|
|
@@ -298,6 +299,22 @@ Read recent usage off the management API.
|
|
|
298
299
|
farthershore usage summary weather-api --format json
|
|
299
300
|
```
|
|
300
301
|
|
|
302
|
+
### `farthershore consumer`
|
|
303
|
+
|
|
304
|
+
Manage live business users/consumers. These are API-controlled runtime actions,
|
|
305
|
+
not repo-authored product behavior.
|
|
306
|
+
|
|
307
|
+
```bash
|
|
308
|
+
farthershore consumer list weather-api --format json
|
|
309
|
+
farthershore consumer list weather-api --env preview --format json
|
|
310
|
+
farthershore consumer block weather-api <subscriberId> --yes --format json
|
|
311
|
+
farthershore consumer remove weather-api <subscriberId> --yes --format json
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
Use `consumer list` first to discover `subscriberId`. `block` suspends a user
|
|
315
|
+
and revokes active API keys. `remove` is irreversible and tears down subscriber
|
|
316
|
+
state across billing, edge credentials, and subscriptions.
|
|
317
|
+
|
|
301
318
|
### `farthershore backend`
|
|
302
319
|
|
|
303
320
|
Create BYO backends and provision runtime tokens for upstream services. Core
|
|
@@ -365,6 +382,43 @@ farthershore webhook delete weather-api <webhookId> --yes --format json
|
|
|
365
382
|
`webhook create` returns the signing secret once. Store it in the receiving app;
|
|
366
383
|
subsequent list/delivery commands never return the secret.
|
|
367
384
|
|
|
385
|
+
### `farthershore promo-code`
|
|
386
|
+
|
|
387
|
+
Manage checkout promo codes. Promo codes are API-controlled operational state,
|
|
388
|
+
not part of `business/business.config.ts`, so agents can manage them through the
|
|
389
|
+
CLI just like the dashboard.
|
|
390
|
+
|
|
391
|
+
```bash
|
|
392
|
+
farthershore promo-code list weather-api --format json
|
|
393
|
+
farthershore promo-code create weather-api \
|
|
394
|
+
--code LAUNCH25 \
|
|
395
|
+
--kind percent_off \
|
|
396
|
+
--percent 25 \
|
|
397
|
+
--duration-months 3 \
|
|
398
|
+
--plan <planId> \
|
|
399
|
+
--format json
|
|
400
|
+
farthershore promo-code create weather-api \
|
|
401
|
+
--code SAVE500 \
|
|
402
|
+
--kind amount_off \
|
|
403
|
+
--amount-cents 500 \
|
|
404
|
+
--duration-months 1 \
|
|
405
|
+
--format json
|
|
406
|
+
farthershore promo-code update weather-api <promoCodeId> \
|
|
407
|
+
--code LAUNCH30 \
|
|
408
|
+
--kind percent_off \
|
|
409
|
+
--percent 30 \
|
|
410
|
+
--duration-months 3 \
|
|
411
|
+
--all-plans \
|
|
412
|
+
--format json
|
|
413
|
+
farthershore promo-code archive weather-api <promoCodeId> --format json
|
|
414
|
+
farthershore promo-code reactivate weather-api <promoCodeId> --format json
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
Stripe coupon changes require a complete discount spec, so `promo-code update`
|
|
418
|
+
requires `--kind`, `--duration-months`, and the required amount flag for that
|
|
419
|
+
kind whenever you change code, amount, dates, plan scope, or redemption limits.
|
|
420
|
+
Use `--all-plans` to clear plan scoping.
|
|
421
|
+
|
|
368
422
|
### `farthershore connect`
|
|
369
423
|
|
|
370
424
|
GitHub OAuth and Stripe Connect flows are browser-only. These commands
|
|
@@ -585,6 +639,10 @@ operation registry that generates the CLI command groups. Tool names use the
|
|
|
585
639
|
`fs_runtime_token_rotate`, `fs_runtime_token_revoke`
|
|
586
640
|
- Webhooks: `fs_webhook_list`, `fs_webhook_create`, `fs_webhook_update`,
|
|
587
641
|
`fs_webhook_delete`, `fs_webhook_test`, `fs_webhook_deliveries`
|
|
642
|
+
- Promo codes: `fs_promo_code_list`, `fs_promo_code_create`,
|
|
643
|
+
`fs_promo_code_update`, `fs_promo_code_archive`,
|
|
644
|
+
`fs_promo_code_reactivate`
|
|
645
|
+
- Consumers: `fs_consumer_list`, `fs_consumer_block`, `fs_consumer_remove`
|
|
588
646
|
- Personas: `fs_persona_bootstrap`, `fs_persona_list`, `fs_persona_revoke`
|
|
589
647
|
- Usage and maker tokens: `fs_usage_read`, `fs_maker_token_list`
|
|
590
648
|
|