@capgo/cli 8.32.6 → 8.33.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 +15 -7
- package/dist/index.js +672 -668
- package/dist/package.json +4 -3
- package/dist/src/api/update.d.ts +5 -1
- 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/reporter.d.ts +23 -0
- package/dist/src/bundle/upload.d.ts +4 -15
- package/dist/src/init/command-execution.d.ts +37 -0
- package/dist/src/init/command.d.ts +1 -0
- package/dist/src/init/runtime.d.ts +7 -0
- package/dist/src/mcp/tool-schemas.d.ts +6 -0
- package/dist/src/replicationProgress.d.ts +10 -1
- package/dist/src/schemas/build.d.ts +2 -0
- package/dist/src/schemas/bundle.d.ts +6 -0
- package/dist/src/schemas/sdk.d.ts +9 -0
- package/dist/src/sdk.js +344 -344
- package/dist/src/utils.d.ts +52 -7
- package/dist/src/versionHelpers.d.ts +25 -0
- package/package.json +4 -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, or metadata (prerelease) |
|
|
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) |
|
|
@@ -1398,12 +1399,15 @@ npx @capgo/cli@latest build request
|
|
|
1398
1399
|
```
|
|
1399
1400
|
|
|
1400
1401
|
Request a native build from Capgo Cloud.
|
|
1401
|
-
This command
|
|
1402
|
-
|
|
1402
|
+
This command zips your project and uploads it to Capgo for a remote native build.
|
|
1403
|
+
By default the finished artifact can go to the app store (when store credentials are saved)
|
|
1404
|
+
and/or to Capgo storage as a time-limited download link (--output-upload).
|
|
1403
1405
|
🔒 SECURITY: Credentials are never stored on Capgo servers. They are auto-deleted
|
|
1404
1406
|
after build completion. Build outputs may optionally be uploaded for time-limited download links.
|
|
1405
1407
|
📋 PREREQUISITE: Save credentials first with:
|
|
1406
|
-
`npx @capgo/cli build credentials save --appId <app-id> --platform <ios|android>`
|
|
1408
|
+
`npx @capgo/cli@latest build credentials save --appId <app-id> --platform <ios|android>`
|
|
1409
|
+
Android AAB only (no Play upload): npx @capgo/cli@latest build request com.example.app --platform android --no-playstore-upload --output-upload
|
|
1410
|
+
iOS IPA only (no TestFlight upload): npx @capgo/cli@latest build request com.example.app --platform ios --ios-distribution ad_hoc --output-upload
|
|
1407
1411
|
|
|
1408
1412
|
**Example:**
|
|
1409
1413
|
|
|
@@ -1430,7 +1434,7 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
|
|
|
1430
1434
|
| **--app-store-connect-team-id** | <code>string</code> | iOS: App Store Connect Team ID |
|
|
1431
1435
|
| **--ios-scheme** | <code>string</code> | iOS: Xcode scheme to build (default: App) |
|
|
1432
1436
|
| **--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 |
|
|
1437
|
+
| **--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
1438
|
| **--ios-provisioning-profile** | <code>string</code> | iOS: Provisioning profile path or bundleId=path mapping (repeatable) |
|
|
1435
1439
|
| **--android-keystore-file** | <code>string</code> | Android: Base64-encoded keystore file |
|
|
1436
1440
|
| **--keystore-key-alias** | <code>string</code> | Android: Keystore key alias |
|
|
@@ -1439,7 +1443,7 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
|
|
|
1439
1443
|
| **--play-config-json** | <code>string</code> | Android: Base64-encoded Google Play service account JSON |
|
|
1440
1444
|
| **--android-flavor** | <code>string</code> | Android: Product flavor to build (e.g. production). Required if your project has multiple flavors. |
|
|
1441
1445
|
| **--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> |
|
|
1446
|
+
| **--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
1447
|
| **--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
1448
|
| **--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
1449
|
| **--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 +1451,8 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
|
|
|
1447
1451
|
| **--ios-testflight-groups** | <code>string</code> | iOS: optional comma-separated TestFlight external group names or IDs for external beta distribution. |
|
|
1448
1452
|
| **--ios-automatic-release** | <code>boolean</code> | iOS: automatically release the App Store version after Apple approval. Default is manual release. |
|
|
1449
1453
|
| **--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> |
|
|
1454
|
+
| **--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 |
|
|
1455
|
+
| **--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
1456
|
| **--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
1457
|
| **--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
1458
|
| **--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 +1463,8 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
|
|
|
1459
1463
|
| **--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
1464
|
| **--no-prescan** | <code>boolean</code> | Skip the automatic pre-build scan |
|
|
1461
1465
|
| **--prescan-ignore-fatal** | <code>boolean</code> | Run the pre-build scan but never block the build (report only) |
|
|
1466
|
+
| **--prescan-skip** | <code>string</code> | Skip specific prescan check(s) by id (repeatable or comma-separated). Other checks still run. |
|
|
1467
|
+
| **--prescan-warn** | <code>string</code> | Downgrade specific prescan check(s) to warning by id (repeatable or comma-separated). Check still runs. |
|
|
1462
1468
|
| **--fail-on-warnings** | <code>boolean</code> | Treat prescan warnings as fatal |
|
|
1463
1469
|
| **--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
1470
|
| **--send-logs** | <code>boolean</code> | Deprecated alias for --send-logs-to-support |
|
|
@@ -1509,6 +1515,8 @@ Checks credentials (expiry, passwords, profile pairing), project state (cap sync
|
|
|
1509
1515
|
| **--json** | <code>boolean</code> | Output a machine-readable JSON report |
|
|
1510
1516
|
| **--fail-on-warnings** | <code>boolean</code> | Exit non-zero when warnings are found (CI) |
|
|
1511
1517
|
| **--ignore-fatal** | <code>boolean</code> | Diagnostic mode: report everything but always exit 0 |
|
|
1518
|
+
| **--skip** | <code>string</code> | Skip specific check(s) by id (repeatable or comma-separated). Alias of --prescan-skip on build request. |
|
|
1519
|
+
| **--warn** | <code>string</code> | Downgrade specific check(s) to warning by id (repeatable or comma-separated). Alias of --prescan-warn on build request. |
|
|
1512
1520
|
| **--verbose** | <code>boolean</code> | Enable verbose output with detailed logging |
|
|
1513
1521
|
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
1514
1522
|
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|