@capgo/cli 8.32.7 → 8.33.1
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 +16 -7
- package/dist/index.js +699 -707
- package/dist/package.json +6 -3
- package/dist/src/analytics/cli-headers.d.ts +9 -0
- package/dist/src/analytics/org-resolver.d.ts +3 -1
- package/dist/src/api/app.d.ts +16 -4
- package/dist/src/api/channels.d.ts +31 -46
- package/dist/src/api/versions.d.ts +13 -4
- package/dist/src/app/list.d.ts +1 -1
- package/dist/src/build/onboarding/android/ui/app.d.ts +2 -0
- package/dist/src/build/onboarding/command.d.ts +2 -0
- package/dist/src/build/onboarding/ui/app.d.ts +2 -0
- package/dist/src/build/onboarding/ui/shell.d.ts +2 -0
- package/dist/src/build/prescan/command.d.ts +4 -0
- package/dist/src/build/prescan/engine.d.ts +4 -1
- package/dist/src/build/prescan/overrides.d.ts +21 -0
- package/dist/src/build/prescan/registry.d.ts +2 -0
- package/dist/src/bundle/auto-bump-ai.d.ts +50 -0
- package/dist/src/bundle/upload.d.ts +14 -0
- package/dist/src/capacitor-cli.d.ts +1 -0
- package/dist/src/channel/add.d.ts +0 -36
- package/dist/src/init/command-execution.d.ts +37 -0
- package/dist/src/init/command.d.ts +1 -0
- package/dist/src/mcp/tool-schemas.d.ts +7 -0
- package/dist/src/posthog.d.ts +8 -0
- package/dist/src/preview/qr.d.ts +13 -9
- package/dist/src/schemas/auth.d.ts +2 -2
- package/dist/src/schemas/build.d.ts +2 -0
- package/dist/src/schemas/bundle.d.ts +8 -0
- package/dist/src/schemas/sdk.d.ts +10 -0
- package/dist/src/sdk.js +384 -395
- package/dist/src/shared/cli-user-error.d.ts +20 -0
- package/dist/src/types/supabase.types.d.ts +3 -0
- package/dist/src/utils.d.ts +73 -6
- package/dist/src/versionHelpers.d.ts +33 -0
- package/package.json +6 -3
- package/skills/native-builds/SKILL.md +20 -4
package/README.md
CHANGED
|
@@ -422,6 +422,7 @@ npx @capgo/cli@latest bundle upload com.example.app --path ./dist --channel prod
|
|
|
422
422
|
| **--no-delta** | <code>boolean</code> | Disable delta updates even if instant updates are enabled |
|
|
423
423
|
| **--encrypted-checksum** | <code>string</code> | An encrypted checksum (signature). Used only when uploading an external bundle. |
|
|
424
424
|
| **--auto-set-bundle** | <code>boolean</code> | Set the bundle version in Capacitor config |
|
|
425
|
+
| **--auto-bump** | <code>string</code> | Auto-increment bundle version from the latest remote channel/app version. Level: major, minor (default), patch|fix, metadata (prerelease), or ai |
|
|
425
426
|
| **--capacitor-config** | <code>string</code> | Capacitor config source to update (useful with dynamic monorepo configs) |
|
|
426
427
|
| **--dry-upload** | <code>boolean</code> | Dry upload the bundle process: add the row in database without uploading files or updating channels (Used by Capgo for internal testing) |
|
|
427
428
|
| **--package-json** | <code>string</code> | Paths to package.json files for monorepos (comma-separated) |
|
|
@@ -1389,6 +1390,7 @@ Set up build credentials interactively (iOS: certificates + profiles automated;
|
|
|
1389
1390
|
| **-a** | <code>string</code> | API key to link to your account |
|
|
1390
1391
|
| **-p** | <code>string</code> | Platform to onboard (ios or android). If omitted, auto-detects when only one native folder exists; prompts otherwise. |
|
|
1391
1392
|
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
1393
|
+
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
1392
1394
|
| **--no-analytics** | <code>boolean</code> | Disable build onboarding analytics and terminal replay for this run |
|
|
1393
1395
|
|
|
1394
1396
|
### <a id="build-request"></a> 🔹 **Request**
|
|
@@ -1398,12 +1400,15 @@ npx @capgo/cli@latest build request
|
|
|
1398
1400
|
```
|
|
1399
1401
|
|
|
1400
1402
|
Request a native build from Capgo Cloud.
|
|
1401
|
-
This command
|
|
1402
|
-
|
|
1403
|
+
This command zips your project and uploads it to Capgo for a remote native build.
|
|
1404
|
+
By default the finished artifact can go to the app store (when store credentials are saved)
|
|
1405
|
+
and/or to Capgo storage as a time-limited download link (--output-upload).
|
|
1403
1406
|
🔒 SECURITY: Credentials are never stored on Capgo servers. They are auto-deleted
|
|
1404
1407
|
after build completion. Build outputs may optionally be uploaded for time-limited download links.
|
|
1405
1408
|
📋 PREREQUISITE: Save credentials first with:
|
|
1406
|
-
`npx @capgo/cli build credentials save --appId <app-id> --platform <ios|android>`
|
|
1409
|
+
`npx @capgo/cli@latest build credentials save --appId <app-id> --platform <ios|android>`
|
|
1410
|
+
Android AAB only (no Play upload): npx @capgo/cli@latest build request com.example.app --platform android --no-playstore-upload --output-upload
|
|
1411
|
+
iOS IPA only (no TestFlight upload): npx @capgo/cli@latest build request com.example.app --platform ios --ios-distribution ad_hoc --output-upload
|
|
1407
1412
|
|
|
1408
1413
|
**Example:**
|
|
1409
1414
|
|
|
@@ -1430,7 +1435,7 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
|
|
|
1430
1435
|
| **--app-store-connect-team-id** | <code>string</code> | iOS: App Store Connect Team ID |
|
|
1431
1436
|
| **--ios-scheme** | <code>string</code> | iOS: Xcode scheme to build (default: App) |
|
|
1432
1437
|
| **--ios-target** | <code>string</code> | iOS: Xcode target for reading build settings (default: same as scheme) |
|
|
1433
|
-
| **--ios-distribution** | <code>string</code> | iOS: Distribution mode |
|
|
1438
|
+
| **--ios-distribution** | <code>string</code> | iOS: Distribution mode. app_store (default) uploads to TestFlight/App Store; ad_hoc skips store upload and builds an Ad Hoc IPA for device install. Use ad_hoc with --output-upload when the App Store app does not exist yet or you only need an IPA download. |
|
|
1434
1439
|
| **--ios-provisioning-profile** | <code>string</code> | iOS: Provisioning profile path or bundleId=path mapping (repeatable) |
|
|
1435
1440
|
| **--android-keystore-file** | <code>string</code> | Android: Base64-encoded keystore file |
|
|
1436
1441
|
| **--keystore-key-alias** | <code>string</code> | Android: Keystore key alias |
|
|
@@ -1439,7 +1444,7 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
|
|
|
1439
1444
|
| **--play-config-json** | <code>string</code> | Android: Base64-encoded Google Play service account JSON |
|
|
1440
1445
|
| **--android-flavor** | <code>string</code> | Android: Product flavor to build (e.g. production). Required if your project has multiple flavors. |
|
|
1441
1446
|
| **--in-app-update-priority** | <code>string</code> | Android: Google Play in-app update priority for this release (integer 0–5; higher = more urgent). See https://developer.android.com/guide/playcore/in-app-updates. Precedence: CLI > env > saved credentials |
|
|
1442
|
-
| **--no-playstore-upload** | <code>boolean</code> |
|
|
1447
|
+
| **--no-playstore-upload** | <code>boolean</code> | Android: do not upload the AAB/APK to Google Play for this build (ignores saved Play credentials). Use when the Play app does not exist yet, or you only want a Capgo download link. Requires --output-upload. |
|
|
1443
1448
|
| **--submit-to-store-review** | <code>boolean</code> | After upload, submit the store release for review instead of leaving it as a draft/inactive build. Android marks the Play release completed; iOS submits the processed TestFlight build to App Store review. |
|
|
1444
1449
|
| **--store-release-name** | <code>string</code> | Store release name/version label. Android sends this as the Google Play version_name; iOS uses it as the App Store version when creating or reusing the editable version. |
|
|
1445
1450
|
| **--store-release-notes** | <code>string</code> | Default store release notes. Android uses this as the Play changelog; iOS uses it as the fallback App Store What's New text. |
|
|
@@ -1447,8 +1452,8 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
|
|
|
1447
1452
|
| **--ios-testflight-groups** | <code>string</code> | iOS: optional comma-separated TestFlight external group names or IDs for external beta distribution. |
|
|
1448
1453
|
| **--ios-automatic-release** | <code>boolean</code> | iOS: automatically release the App Store version after Apple approval. Default is manual release. |
|
|
1449
1454
|
| **--no-ios-automatic-release** | <code>boolean</code> | iOS: keep the App Store version waiting for manual release after Apple approval. |
|
|
1450
|
-
| **--output-upload** | <code>boolean</code> |
|
|
1451
|
-
| **--no-output-upload** | <code>boolean</code> |
|
|
1455
|
+
| **--output-upload** | <code>boolean</code> | Upload the finished IPA/APK/AAB to Capgo storage and print a time-limited download link (and QR). Use with --no-playstore-upload (Android) or --ios-distribution ad_hoc (iOS) when you only need the artifact and are not publishing to the store yet. Precedence: CLI > env > saved credentials |
|
|
1456
|
+
| **--no-output-upload** | <code>boolean</code> | Do not upload the finished IPA/APK/AAB to Capgo storage (no download link). Store upload still happens when Play/TestFlight credentials are configured. Precedence: CLI > env > saved credentials |
|
|
1452
1457
|
| **--output-retention** | <code>string</code> | Override output link TTL for this build only (1h to 7d). Examples: 1h, 6h, 2d. Precedence: CLI > env > saved credentials |
|
|
1453
1458
|
| **--output-record** | <code>string</code> | After a successful build, write a JSON record (jobId, status, outputUrl, qrCodeAscii, qrCodePngPath, finishedAt) to <path>. A PNG QR code is also written next to it as <path>.qr.png. Read fields back with `build last-output`. |
|
|
1454
1459
|
| **--skip-build-number-bump** | <code>boolean</code> | Skip automatic build number/version code incrementing. Uses whatever version is already in the project files. |
|
|
@@ -1459,6 +1464,8 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
|
|
|
1459
1464
|
| **--ai-analytics** | <code>boolean</code> | On build failure, send logs to Capgo AI for diagnosis. In interactive terminals this skips the upfront confirmation; in CI this auto-uploads and prints the analysis to stderr. |
|
|
1460
1465
|
| **--no-prescan** | <code>boolean</code> | Skip the automatic pre-build scan |
|
|
1461
1466
|
| **--prescan-ignore-fatal** | <code>boolean</code> | Run the pre-build scan but never block the build (report only) |
|
|
1467
|
+
| **--prescan-skip** | <code>string</code> | Skip specific prescan check(s) by id (repeatable or comma-separated). Other checks still run. |
|
|
1468
|
+
| **--prescan-warn** | <code>string</code> | Downgrade specific prescan check(s) to warning by id (repeatable or comma-separated). Check still runs. |
|
|
1462
1469
|
| **--fail-on-warnings** | <code>boolean</code> | Treat prescan warnings as fatal |
|
|
1463
1470
|
| **--send-logs-to-support** | <code>boolean</code> | On a CI/CD build failure, automatically upload the build logs to Capgo support (no email required). Capgo support is notified and will follow up by email. Additive to --ai-analytics. |
|
|
1464
1471
|
| **--send-logs** | <code>boolean</code> | Deprecated alias for --send-logs-to-support |
|
|
@@ -1509,6 +1516,8 @@ Checks credentials (expiry, passwords, profile pairing), project state (cap sync
|
|
|
1509
1516
|
| **--json** | <code>boolean</code> | Output a machine-readable JSON report |
|
|
1510
1517
|
| **--fail-on-warnings** | <code>boolean</code> | Exit non-zero when warnings are found (CI) |
|
|
1511
1518
|
| **--ignore-fatal** | <code>boolean</code> | Diagnostic mode: report everything but always exit 0 |
|
|
1519
|
+
| **--skip** | <code>string</code> | Skip specific check(s) by id (repeatable or comma-separated). Alias of --prescan-skip on build request. |
|
|
1520
|
+
| **--warn** | <code>string</code> | Downgrade specific check(s) to warning by id (repeatable or comma-separated). Alias of --prescan-warn on build request. |
|
|
1512
1521
|
| **--verbose** | <code>boolean</code> | Enable verbose output with detailed logging |
|
|
1513
1522
|
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
1514
1523
|
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|