@insforge/cli 0.1.60 → 0.1.62

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @insforge/cli
2
2
 
3
- Command line tool for the [InsForge](https://insforge.dev) platform. Manage your databases, edge functions, storage, deployments, secrets, and more — directly from the terminal.
3
+ Command line tool for the [InsForge](https://insforge.dev) platform. Manage your databases, edge functions, storage, deployments, payments, secrets, and more — directly from the terminal.
4
4
 
5
5
  Designed to be both human-friendly (interactive prompts, formatted tables) and agent-friendly (structured JSON output, non-interactive mode, semantic exit codes).
6
6
 
@@ -411,6 +411,92 @@ npx @insforge/cli deployments cancel abc-123
411
411
 
412
412
  ---
413
413
 
414
+ ### Payments — `npx @insforge/cli payments`
415
+
416
+ Manage the Stripe payments foundation for the linked InsForge project. These commands are intended for developers and agents configuring Stripe keys, syncing catalog state, and managing products/prices. Runtime checkout and customer portal calls should usually be made from the app via the SDK.
417
+
418
+ #### `npx @insforge/cli payments status`
419
+
420
+ Show Stripe key, account, sync, and webhook status for test/live environments.
421
+
422
+ ```bash
423
+ npx @insforge/cli payments status
424
+ npx @insforge/cli payments status --json
425
+ ```
426
+
427
+ #### `npx @insforge/cli payments config`
428
+
429
+ List, set, or remove Stripe secret keys.
430
+
431
+ ```bash
432
+ npx @insforge/cli payments config
433
+ npx @insforge/cli payments config set test sk_test_xxx
434
+ npx @insforge/cli payments config set live # prompts securely
435
+ npx @insforge/cli payments config remove test -y
436
+ ```
437
+
438
+ #### `npx @insforge/cli payments sync`
439
+
440
+ Sync Stripe products, prices, and subscriptions from configured environments.
441
+
442
+ ```bash
443
+ npx @insforge/cli payments sync
444
+ npx @insforge/cli payments sync --environment test
445
+ npx @insforge/cli payments sync --environment live --json
446
+ ```
447
+
448
+ #### `npx @insforge/cli payments webhooks configure <environment>`
449
+
450
+ Create or recreate the InsForge-managed Stripe webhook endpoint for an environment.
451
+
452
+ ```bash
453
+ npx @insforge/cli payments webhooks configure test
454
+ ```
455
+
456
+ #### `npx @insforge/cli payments products`
457
+
458
+ List, inspect, create, update, or delete Stripe products.
459
+
460
+ ```bash
461
+ npx @insforge/cli payments products list --environment test
462
+ npx @insforge/cli payments products get prod_123 --environment test
463
+ npx @insforge/cli payments products create --environment test --name "Pro Plan"
464
+ npx @insforge/cli payments products update prod_123 --environment test --description "Updated"
465
+ npx @insforge/cli payments products delete prod_123 --environment test -y
466
+ ```
467
+
468
+ #### `npx @insforge/cli payments prices`
469
+
470
+ List, inspect, create, update, or archive Stripe prices.
471
+
472
+ ```bash
473
+ npx @insforge/cli payments prices list --environment test
474
+ npx @insforge/cli payments prices create --environment test --product prod_123 --currency usd --unit-amount 2000
475
+ npx @insforge/cli payments prices create --environment test --product prod_123 --currency usd --unit-amount 2000 --interval month
476
+ npx @insforge/cli payments prices update price_123 --environment test --active false
477
+ npx @insforge/cli payments prices archive price_123 --environment test
478
+ ```
479
+
480
+ #### `npx @insforge/cli payments subscriptions`
481
+
482
+ List mirrored Stripe subscriptions for admin/debugging workflows.
483
+
484
+ ```bash
485
+ npx @insforge/cli payments subscriptions --environment test
486
+ npx @insforge/cli payments subscriptions --environment test --subject-type team --subject-id team_123
487
+ ```
488
+
489
+ #### `npx @insforge/cli payments history`
490
+
491
+ List mirrored payment history for admin/debugging workflows.
492
+
493
+ ```bash
494
+ npx @insforge/cli payments history --environment test
495
+ npx @insforge/cli payments history --environment test --limit 20 --json
496
+ ```
497
+
498
+ ---
499
+
414
500
  ### Secrets — `npx @insforge/cli secrets`
415
501
 
416
502
  #### `npx @insforge/cli secrets list`