@insforge/cli 0.1.62 → 0.1.64

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
@@ -63,12 +63,12 @@ npx @insforge/cli logout
63
63
 
64
64
  All commands support the following flags:
65
65
 
66
- | Flag | Description |
67
- |------|-------------|
68
- | `--json` | Output in JSON format (useful for scripts and AI agents) |
69
- | `--project-id <id>` | Override the linked project ID |
70
- | `--api-url <url>` | Override the Platform API URL |
71
- | `-y, --yes` | Skip confirmation prompts |
66
+ | Flag | Description |
67
+ | ------------------- | -------------------------------------------------------- |
68
+ | `--json` | Output in JSON format (useful for scripts and AI agents) |
69
+ | `--project-id <id>` | Override the linked project ID |
70
+ | `--api-url <url>` | Override the Platform API URL |
71
+ | `-y, --yes` | Skip confirmation prompts |
72
72
 
73
73
  ## Commands
74
74
 
@@ -149,9 +149,11 @@ npx @insforge/cli logs <source> [options]
149
149
  **Sources:** `insforge.logs`, `postgREST.logs`, `postgres.logs`, `function.logs`
150
150
 
151
151
  **Options:**
152
+
152
153
  - `--limit <n>`: Number of log entries to return (default: 20)
153
154
 
154
155
  **Examples:**
156
+
155
157
  ```bash
156
158
  npx @insforge/cli logs insforge.logs
157
159
  npx @insforge/cli logs postgres.logs --limit 50
@@ -170,6 +172,7 @@ npx @insforge/cli docs [feature] [language]
170
172
  **Languages:** `typescript`, `swift`, `kotlin`, `rest-api`
171
173
 
172
174
  **Examples:**
175
+
173
176
  ```bash
174
177
  # List all available docs
175
178
  npx @insforge/cli docs
@@ -413,7 +416,7 @@ npx @insforge/cli deployments cancel abc-123
413
416
 
414
417
  ### Payments — `npx @insforge/cli payments`
415
418
 
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.
419
+ Manage the Stripe payments foundation for the linked InsForge project. These commands are intended for developers and agents configuring Stripe keys, syncing catalog state, inspecting mirrored customers, and managing products/prices. Runtime checkout and customer portal calls should usually be made from the app via the SDK.
417
420
 
418
421
  #### `npx @insforge/cli payments status`
419
422
 
@@ -437,7 +440,7 @@ npx @insforge/cli payments config remove test -y
437
440
 
438
441
  #### `npx @insforge/cli payments sync`
439
442
 
440
- Sync Stripe products, prices, and subscriptions from configured environments.
443
+ Sync Stripe products, prices, customers, and subscriptions from configured environments.
441
444
 
442
445
  ```bash
443
446
  npx @insforge/cli payments sync
@@ -453,6 +456,24 @@ Create or recreate the InsForge-managed Stripe webhook endpoint for an environme
453
456
  npx @insforge/cli payments webhooks configure test
454
457
  ```
455
458
 
459
+ #### `npx @insforge/cli payments catalog --environment <environment>`
460
+
461
+ Inspect mirrored Stripe products and prices for one environment.
462
+
463
+ ```bash
464
+ npx @insforge/cli payments catalog --environment test
465
+ npx @insforge/cli payments catalog --environment test --json
466
+ ```
467
+
468
+ #### `npx @insforge/cli payments customers --environment <environment>`
469
+
470
+ List mirrored Stripe customers for admin/debugging workflows.
471
+
472
+ ```bash
473
+ npx @insforge/cli payments customers --environment test
474
+ npx @insforge/cli payments customers --environment test --limit 20 --json
475
+ ```
476
+
456
477
  #### `npx @insforge/cli payments products`
457
478
 
458
479
  List, inspect, create, update, or delete Stripe products.
@@ -637,19 +658,19 @@ Skill files are written to per-agent directories (e.g. `.claude/`, `.cursor/`, `
637
658
 
638
659
  ## Analytics
639
660
 
640
- The CLI reports anonymous usage events to [PostHog](https://posthog.com) so we can understand which features are being used and prioritize improvements.
661
+ The CLI reports anonymous usage events to [PostHog](https://posthog.com) so we can understand which features are being used and prioritize improvements.
641
662
 
642
663
  Analytics are enabled by default in the published npm package. If you build the CLI from source without setting `POSTHOG_API_KEY` at build time, analytics become a no-op automatically.
643
664
 
644
665
  ## Environment Variables
645
666
 
646
- | Variable | Description |
647
- |----------|-------------|
648
- | `INSFORGE_ACCESS_TOKEN` | Override the stored access token |
649
- | `INSFORGE_PROJECT_ID` | Override the linked project ID |
650
- | `INSFORGE_API_URL` | Override the Platform API URL |
651
- | `INSFORGE_EMAIL` | Email for non-interactive login |
652
- | `INSFORGE_PASSWORD` | Password for non-interactive login |
667
+ | Variable | Description |
668
+ | ----------------------- | ---------------------------------- |
669
+ | `INSFORGE_ACCESS_TOKEN` | Override the stored access token |
670
+ | `INSFORGE_PROJECT_ID` | Override the linked project ID |
671
+ | `INSFORGE_API_URL` | Override the Platform API URL |
672
+ | `INSFORGE_EMAIL` | Email for non-interactive login |
673
+ | `INSFORGE_PASSWORD` | Password for non-interactive login |
653
674
 
654
675
  ## Non-Interactive / CI Usage
655
676
 
@@ -674,14 +695,14 @@ npx @insforge/cli storage upload ./dist/bundle.js --bucket assets --key "v1.2.0/
674
695
 
675
696
  ## Exit Codes
676
697
 
677
- | Code | Meaning |
678
- |------|---------|
679
- | 0 | Success |
680
- | 1 | General error |
681
- | 2 | Authentication failure |
682
- | 3 | Project not linked (run `npx @insforge/cli link` first) |
683
- | 4 | Resource not found |
684
- | 5 | Permission denied |
698
+ | Code | Meaning |
699
+ | ---- | ------------------------------------------------------- |
700
+ | 0 | Success |
701
+ | 1 | General error |
702
+ | 2 | Authentication failure |
703
+ | 3 | Project not linked (run `npx @insforge/cli link` first) |
704
+ | 4 | Resource not found |
705
+ | 5 | Permission denied |
685
706
 
686
707
  ## Development
687
708
 
@@ -714,14 +735,17 @@ npm run test:integration:real
714
735
  ```
715
736
 
716
737
  Prerequisites:
738
+
717
739
  - Logged in (`npx @insforge/cli login`) so `~/.insforge/credentials.json` exists
718
740
  - Linked project in this repo (`npx @insforge/cli link`) so `.insforge/project.json` exists
719
741
 
720
742
  Optional environment variables:
743
+
721
744
  - `INSFORGE_API_URL`: Platform API URL override (defaults to `https://api.insforge.dev`)
722
745
  - `INTEGRATION_LOG_SOURCE`: Log source for `logs` test (default `insforge.logs`)
723
746
 
724
747
  Current real-project checks:
748
+
725
749
  - `whoami --json`
726
750
  - `metadata --json`
727
751
  - `logs <source> --json`