@capgo/cli 8.50.2 β 8.50.3
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 +97 -97
- package/dist/index.js +91 -88
- package/dist/package.json +3 -2
- package/dist/src/sdk.js +1 -1
- package/package.json +3 -2
- package/skills/native-builds/SKILL.md +11 -11
package/README.md
CHANGED
|
@@ -1356,21 +1356,12 @@ npx @capgo/cli@latest organisation delete
|
|
|
1356
1356
|
|
|
1357
1357
|
## <a id="build"></a> πΉ **Build**
|
|
1358
1358
|
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
π BEFORE BUILDING:
|
|
1366
|
-
Save your credentials first:
|
|
1367
|
-
npx @capgo/cli build credentials save --appId <your-app-id> --platform ios
|
|
1368
|
-
npx @capgo/cli build credentials save --appId <your-app-id> --platform android
|
|
1369
|
-
π€ CAPTURE THE OUTPUT URL FROM CI:
|
|
1370
|
-
Pass --output-record to persist the download URL + QR code, then read it
|
|
1371
|
-
back with `build last-output`:
|
|
1372
|
-
npx @capgo/cli build request <appId> --platform android --output-upload --output-record /tmp/build.json
|
|
1373
|
-
URL=$(npx @capgo/cli build last-output --path /tmp/build.json --field outputUrl)
|
|
1359
|
+
Build native iOS and Android apps with Capgo Cloud.
|
|
1360
|
+
Native cloud builds are currently in limited beta.
|
|
1361
|
+
Quick start:
|
|
1362
|
+
npx @capgo/cli@latest build init
|
|
1363
|
+
npx @capgo/cli@latest build request <app-id> --platform <ios|android>
|
|
1364
|
+
Run npx @capgo/cli@latest build <command> --help for command-specific options.
|
|
1374
1365
|
|
|
1375
1366
|
### <a id="build-needed"></a> πΉ **Needed**
|
|
1376
1367
|
|
|
@@ -1378,12 +1369,13 @@ npx @capgo/cli@latest organisation delete
|
|
|
1378
1369
|
npx @capgo/cli@latest build needed
|
|
1379
1370
|
```
|
|
1380
1371
|
|
|
1381
|
-
|
|
1372
|
+
Print "yes" and exit with code 1 if a native build is required. Otherwise print "no" and exit with code 0. Command failures exit with code 2.
|
|
1373
|
+
npx @capgo/cli@latest build needed com.example.app --channel production --verbose
|
|
1382
1374
|
|
|
1383
1375
|
**Example:**
|
|
1384
1376
|
|
|
1385
1377
|
```bash
|
|
1386
|
-
|
|
1378
|
+
Example:
|
|
1387
1379
|
```
|
|
1388
1380
|
|
|
1389
1381
|
**Options:**
|
|
@@ -1425,23 +1417,26 @@ npx @capgo/cli@latest build request
|
|
|
1425
1417
|
```
|
|
1426
1418
|
|
|
1427
1419
|
Request a native build from Capgo Cloud.
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
npx @capgo/cli@latest build request com.example.app
|
|
1444
|
-
|
|
1420
|
+
The project is zipped and uploaded for a remote native build. The finished artifact can be sent to the app store, uploaded to Capgo for a time-limited download, or both.
|
|
1421
|
+
Credentials are uploaded only for the build. Their temporary server copies are deleted after it finishes.
|
|
1422
|
+
Before your first build:
|
|
1423
|
+
npx @capgo/cli@latest build init
|
|
1424
|
+
Examples:
|
|
1425
|
+
iOS build:
|
|
1426
|
+
npx @capgo/cli@latest build request com.example.app \
|
|
1427
|
+
--platform ios --path .
|
|
1428
|
+
Android artifact without Play upload:
|
|
1429
|
+
npx @capgo/cli@latest build request com.example.app \
|
|
1430
|
+
--platform android --no-playstore-upload --output-upload
|
|
1431
|
+
iOS artifact without TestFlight upload:
|
|
1432
|
+
npx @capgo/cli@latest build request com.example.app \
|
|
1433
|
+
--platform ios --ios-distribution ad_hoc --output-upload
|
|
1434
|
+
Disable the Xcode compilation cache:
|
|
1435
|
+
npx @capgo/cli@latest build request com.example.app \
|
|
1436
|
+
--platform ios --no-cache
|
|
1437
|
+
Use a separate compilation cache:
|
|
1438
|
+
npx @capgo/cli@latest build request com.example.app \
|
|
1439
|
+
--platform ios --cache-key prod
|
|
1445
1440
|
|
|
1446
1441
|
**Options:**
|
|
1447
1442
|
|
|
@@ -1464,6 +1459,8 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
|
|
|
1464
1459
|
| **--ios-target** | <code>string</code> | iOS: Xcode target for reading build settings (default: same as scheme) |
|
|
1465
1460
|
| **--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. |
|
|
1466
1461
|
| **--ios-provisioning-profile** | <code>string</code> | iOS: Provisioning profile path or bundleId=path mapping (repeatable) |
|
|
1462
|
+
| **--no-cache** | <code>boolean</code> | Disable Xcode compilation cache for this build (default: cache enabled) |
|
|
1463
|
+
| **--cache-key** | <code>string</code> | Custom compilation cache key for this build (e.g. rc, prod, feature-branch). Use to share or isolate cache between environments. Precedence over the default appId-only key; ignored when --no-cache is set. |
|
|
1467
1464
|
| **--android-keystore-file** | <code>string</code> | Android: Base64-encoded keystore file |
|
|
1468
1465
|
| **--keystore-key-alias** | <code>string</code> | Android: Keystore key alias |
|
|
1469
1466
|
| **--keystore-key-password** | <code>string</code> | Android: Keystore key password |
|
|
@@ -1493,18 +1490,16 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
|
|
|
1493
1490
|
| **--sync-android-version** | <code>boolean</code> | Android: sync versionName in android/app/build.gradle from package.json before uploading the project. Fails unless versionName is a standalone quoted string literal. |
|
|
1494
1491
|
| **--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. |
|
|
1495
1492
|
| **--no-prescan** | <code>boolean</code> | Skip the automatic pre-build scan |
|
|
1496
|
-
| **--no-cache** | <code>boolean</code> | Disable Xcode compilation cache for this build (default: cache enabled) |
|
|
1497
|
-
| **--cache-key** | <code>string</code> | Custom compilation cache key for this build (e.g. rc, prod, feature-branch). Use to share or isolate cache between environments. Precedence over the default appId-only key; ignored when --no-cache is set. |
|
|
1498
1493
|
| **--prescan-ignore-fatal** | <code>boolean</code> | Run the pre-build scan but never block the build (report only) |
|
|
1499
1494
|
| **--prescan-skip** | <code>string</code> | Skip specific prescan check(s) by id (repeatable or comma-separated). Other checks still run. |
|
|
1500
1495
|
| **--prescan-warn** | <code>string</code> | Downgrade specific prescan check(s) to warning by id (repeatable or comma-separated). Check still runs. |
|
|
1501
1496
|
| **--fail-on-warnings** | <code>boolean</code> | Treat prescan warnings as fatal |
|
|
1502
1497
|
| **--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. |
|
|
1503
1498
|
| **--send-logs** | <code>boolean</code> | Deprecated alias for --send-logs-to-support |
|
|
1499
|
+
| **--verbose** | <code>boolean</code> | Enable verbose output with detailed logging |
|
|
1504
1500
|
| **-a** | <code>string</code> | API key to link to your account |
|
|
1505
1501
|
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
1506
1502
|
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
1507
|
-
| **--verbose** | <code>boolean</code> | Enable verbose output with detailed logging |
|
|
1508
1503
|
|
|
1509
1504
|
### <a id="build-sync-ios-version"></a> πΉ **Sync-ios-version**
|
|
1510
1505
|
|
|
@@ -1514,11 +1509,12 @@ npx @capgo/cli@latest build sync-ios-version
|
|
|
1514
1509
|
|
|
1515
1510
|
Sync the local iOS app version from package.json.
|
|
1516
1511
|
Updates MARKETING_VERSION or CFBundleShortVersionString based on the Xcode Info.plist configuration.
|
|
1512
|
+
npx @capgo/cli@latest build sync-ios-version --path .
|
|
1517
1513
|
|
|
1518
1514
|
**Example:**
|
|
1519
1515
|
|
|
1520
1516
|
```bash
|
|
1521
|
-
|
|
1517
|
+
Example:
|
|
1522
1518
|
```
|
|
1523
1519
|
|
|
1524
1520
|
**Options:**
|
|
@@ -1535,7 +1531,15 @@ npx @capgo/cli@latest build prescan
|
|
|
1535
1531
|
```
|
|
1536
1532
|
|
|
1537
1533
|
Scan your project and saved credentials for problems that would fail a cloud build β before uploading anything.
|
|
1538
|
-
Checks credentials
|
|
1534
|
+
Checks credentials, project state, and platform configuration. This scan runs
|
|
1535
|
+
automatically inside `build request`; use this command to run it separately.
|
|
1536
|
+
npx @capgo/cli@latest build prescan com.example.app --platform ios
|
|
1537
|
+
|
|
1538
|
+
**Example:**
|
|
1539
|
+
|
|
1540
|
+
```bash
|
|
1541
|
+
Example:
|
|
1542
|
+
```
|
|
1539
1543
|
|
|
1540
1544
|
**Options:**
|
|
1541
1545
|
|
|
@@ -1566,9 +1570,9 @@ Prints the full JSON by default, a single field with --field, or the ASCII QR
|
|
|
1566
1570
|
code with --qr. Useful in CI to grab the download URL or QR for posting back
|
|
1567
1571
|
to a PR or issue.
|
|
1568
1572
|
Examples:
|
|
1569
|
-
npx @capgo/cli build last-output --path /tmp/build.json
|
|
1570
|
-
npx @capgo/cli build last-output --path /tmp/build.json --field outputUrl
|
|
1571
|
-
npx @capgo/cli build last-output --path /tmp/build.json --qr
|
|
1573
|
+
npx @capgo/cli@latest build last-output --path /tmp/build.json
|
|
1574
|
+
npx @capgo/cli@latest build last-output --path /tmp/build.json --field outputUrl
|
|
1575
|
+
npx @capgo/cli@latest build last-output --path /tmp/build.json --qr
|
|
1572
1576
|
|
|
1573
1577
|
**Options:**
|
|
1574
1578
|
|
|
@@ -1580,15 +1584,14 @@ Examples:
|
|
|
1580
1584
|
|
|
1581
1585
|
### <a id="build-credentials"></a> πΉ **Credentials**
|
|
1582
1586
|
|
|
1583
|
-
Manage
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
Android setup: https://capgo.app/docs/cli/cloud-build/android/
|
|
1587
|
+
Manage locally saved build credentials.
|
|
1588
|
+
Credentials are stored in ~/.capgo-credentials/credentials.json globally, or
|
|
1589
|
+
in .capgo-credentials.json for one project. They are uploaded only for a build;
|
|
1590
|
+
their temporary server copies are deleted after it finishes.
|
|
1591
|
+
Setup guides:
|
|
1592
|
+
iOS: https://capgo.app/docs/cli/cloud-build/ios/
|
|
1593
|
+
Android: https://capgo.app/docs/cli/cloud-build/android/
|
|
1594
|
+
Run npx @capgo/cli@latest build credentials <command> --help for command-specific options.
|
|
1592
1595
|
|
|
1593
1596
|
#### <a id="build-credentials-apple-key"></a> πΉ **Apple-key**
|
|
1594
1597
|
|
|
@@ -1603,7 +1606,7 @@ Opens a native window that walks you through Apple's App Store Connect UI in an
|
|
|
1603
1606
|
embedded browser, auto-captures the Issuer ID + Key ID, intercepts the one-time
|
|
1604
1607
|
.p8, validates it against Apple, and saves it to ~/.appstoreconnect/private_keys.
|
|
1605
1608
|
Progress statistics are forwarded to Capgo analytics (disable with CAPGO_DISABLE_TELEMETRY).
|
|
1606
|
-
npx @capgo/cli build credentials apple-key --appId com.example.app
|
|
1609
|
+
npx @capgo/cli@latest build credentials apple-key --appId com.example.app
|
|
1607
1610
|
|
|
1608
1611
|
**Example:**
|
|
1609
1612
|
|
|
@@ -1650,38 +1653,27 @@ Example:
|
|
|
1650
1653
|
npx @capgo/cli@latest build credentials save
|
|
1651
1654
|
```
|
|
1652
1655
|
|
|
1653
|
-
Save build credentials
|
|
1654
|
-
Credentials are stored in
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
--keystore ./release.keystore --keystore-alias "my-key" \
|
|
1675
|
-
--keystore-key-password "key-pass" \
|
|
1676
|
-
--play-config ./service-account.json
|
|
1677
|
-
Local storage (per-project):
|
|
1678
|
-
npx @capgo/cli build credentials save --local --platform ios ...
|
|
1679
|
-
|
|
1680
|
-
**Example:**
|
|
1681
|
-
|
|
1682
|
-
```bash
|
|
1683
|
-
iOS Example:
|
|
1684
|
-
```
|
|
1656
|
+
Save iOS or Android build credentials on this machine.
|
|
1657
|
+
Credentials are stored globally by default. Use --local to store them in the
|
|
1658
|
+
current project's .capgo-credentials.json file instead.
|
|
1659
|
+
Setup guides:
|
|
1660
|
+
iOS: https://capgo.app/docs/cli/cloud-build/ios/
|
|
1661
|
+
Android: https://capgo.app/docs/cli/cloud-build/android/
|
|
1662
|
+
Examples:
|
|
1663
|
+
iOS app with a widget extension:
|
|
1664
|
+
npx @capgo/cli@latest build credentials save \
|
|
1665
|
+
--appId com.example.app --platform ios \
|
|
1666
|
+
--certificate ./cert.p12 --p12-password "password" \
|
|
1667
|
+
--ios-provisioning-profile ./profile.mobileprovision \
|
|
1668
|
+
--ios-provisioning-profile com.example.widget=./Widget.mobileprovision \
|
|
1669
|
+
--apple-key ./AuthKey.p8 --apple-key-id "KEY123" \
|
|
1670
|
+
--apple-issuer-id "issuer-uuid" --apple-team-id "team-id"
|
|
1671
|
+
Android:
|
|
1672
|
+
npx @capgo/cli@latest build credentials save \
|
|
1673
|
+
--appId com.example.app --platform android \
|
|
1674
|
+
--keystore ./release.keystore --keystore-alias "my-key" \
|
|
1675
|
+
--keystore-key-password "key-pass" \
|
|
1676
|
+
--play-config ./service-account.json
|
|
1685
1677
|
|
|
1686
1678
|
**Options:**
|
|
1687
1679
|
|
|
@@ -1689,6 +1681,7 @@ iOS Example:
|
|
|
1689
1681
|
| -------------- | ------------- | -------------------- |
|
|
1690
1682
|
| **--appId** | <code>string</code> | App ID (e.g., com.example.app) (required) |
|
|
1691
1683
|
| **--platform** | <code>string</code> | Platform: ios or android (required) |
|
|
1684
|
+
| **--local** | <code>boolean</code> | Save to .capgo-credentials.json in project root instead of global ~/.capgo-credentials/ |
|
|
1692
1685
|
| **--certificate** | <code>string</code> | iOS: Path to .p12 certificate file |
|
|
1693
1686
|
| **--ios-provisioning-profile** | <code>string</code> | iOS: Provisioning profile path or bundleId=path (repeatable) |
|
|
1694
1687
|
| **--p12-password** | <code>string</code> | iOS: Certificate password (optional if cert has no password) |
|
|
@@ -1707,7 +1700,6 @@ iOS Example:
|
|
|
1707
1700
|
| **--play-config** | <code>string</code> | Android: Path to Play Store service account JSON |
|
|
1708
1701
|
| **--android-flavor** | <code>string</code> | Android: Product flavor to build (e.g. production). Required if your project has multiple flavors. |
|
|
1709
1702
|
| **--in-app-update-priority** | <code>string</code> | Android: Google Play in-app update priority for future releases (integer 0β5; higher = more urgent). Omit to leave Playβs existing value untouched. |
|
|
1710
|
-
| **--local** | <code>boolean</code> | Save to .capgo-credentials.json in project root instead of global ~/.capgo-credentials/ |
|
|
1711
1703
|
| **--output-upload** | <code>boolean</code> | Upload build outputs (IPA/APK/AAB) to Capgo storage and print download links |
|
|
1712
1704
|
| **--no-output-upload** | <code>boolean</code> | Do not upload build outputs (IPA/APK/AAB) to Capgo storage |
|
|
1713
1705
|
| **--output-retention** | <code>string</code> | Output link TTL: 1h to 7d (default: 1h). Examples: 1h, 6h, 2d |
|
|
@@ -1725,8 +1717,9 @@ npx @capgo/cli@latest build credentials list
|
|
|
1725
1717
|
List saved build credentials (passwords masked).
|
|
1726
1718
|
Shows what credentials are currently saved (both global and local).
|
|
1727
1719
|
Examples:
|
|
1728
|
-
npx @capgo/cli build credentials list
|
|
1729
|
-
npx @capgo/cli build credentials list --appId com.example.app
|
|
1720
|
+
npx @capgo/cli@latest build credentials list
|
|
1721
|
+
npx @capgo/cli@latest build credentials list --appId com.example.app
|
|
1722
|
+
npx @capgo/cli@latest build credentials list --local
|
|
1730
1723
|
|
|
1731
1724
|
**Options:**
|
|
1732
1725
|
|
|
@@ -1745,9 +1738,9 @@ Clear saved build credentials.
|
|
|
1745
1738
|
Remove credentials from storage.
|
|
1746
1739
|
Use --appId and --platform to target specific credentials.
|
|
1747
1740
|
Examples:
|
|
1748
|
-
npx @capgo/cli build credentials clear
|
|
1749
|
-
npx @capgo/cli build credentials clear --local
|
|
1750
|
-
npx @capgo/cli build credentials clear --appId com.example.app --platform ios
|
|
1741
|
+
npx @capgo/cli@latest build credentials clear
|
|
1742
|
+
npx @capgo/cli@latest build credentials clear --local
|
|
1743
|
+
npx @capgo/cli@latest build credentials clear --appId com.example.app --platform ios
|
|
1751
1744
|
|
|
1752
1745
|
**Options:**
|
|
1753
1746
|
|
|
@@ -1767,8 +1760,8 @@ Update specific credentials without providing all of them again.
|
|
|
1767
1760
|
Update existing credentials by providing only the fields you want to change.
|
|
1768
1761
|
Platform is auto-detected from the options you provide.
|
|
1769
1762
|
Examples:
|
|
1770
|
-
npx @capgo/cli build credentials update --ios-provisioning-profile ./new-profile.mobileprovision
|
|
1771
|
-
npx @capgo/cli build credentials update --local --keystore ./new-keystore.jks
|
|
1763
|
+
npx @capgo/cli@latest build credentials update --ios-provisioning-profile ./new-profile.mobileprovision
|
|
1764
|
+
npx @capgo/cli@latest build credentials update --local --keystore ./new-keystore.jks
|
|
1772
1765
|
|
|
1773
1766
|
**Options:**
|
|
1774
1767
|
|
|
@@ -1814,10 +1807,10 @@ Interactively manage saved build credentials.
|
|
|
1814
1807
|
Browse stored credentials, view what's configured, export a CI/CD-ready .env file,
|
|
1815
1808
|
or delete a platform's credentials. Reuses the same TUI as `capgo init`.
|
|
1816
1809
|
Examples:
|
|
1817
|
-
npx @capgo/cli build credentials manage
|
|
1818
|
-
npx @capgo/cli build credentials manage --appId com.example.app
|
|
1819
|
-
npx @capgo/cli build credentials manage --appId com.example.app --platform ios
|
|
1820
|
-
npx @capgo/cli build credentials manage --local
|
|
1810
|
+
npx @capgo/cli@latest build credentials manage
|
|
1811
|
+
npx @capgo/cli@latest build credentials manage --appId com.example.app
|
|
1812
|
+
npx @capgo/cli@latest build credentials manage --appId com.example.app --platform ios
|
|
1813
|
+
npx @capgo/cli@latest build credentials manage --local
|
|
1821
1814
|
|
|
1822
1815
|
**Options:**
|
|
1823
1816
|
|
|
@@ -1837,6 +1830,13 @@ Export one saved Builder credential or configuration value.
|
|
|
1837
1830
|
Raw mode prints only the exact stored value to stdout with no trailing newline.
|
|
1838
1831
|
All failures are written to stderr and exit with status 1. Saved local/global
|
|
1839
1832
|
configuration is used; environment variables are never exported.
|
|
1833
|
+
npx @capgo/cli@latest build credentials export BUILD_CERTIFICATE_BASE64 --app-id com.example.app --platform ios --raw
|
|
1834
|
+
|
|
1835
|
+
**Example:**
|
|
1836
|
+
|
|
1837
|
+
```bash
|
|
1838
|
+
Example:
|
|
1839
|
+
```
|
|
1840
1840
|
|
|
1841
1841
|
**Options:**
|
|
1842
1842
|
|
|
@@ -1860,7 +1860,7 @@ npx @capgo/cli@latest build credentials migrate
|
|
|
1860
1860
|
Migrate legacy provisioning profile to the new multi-target format.
|
|
1861
1861
|
Converts BUILD_PROVISION_PROFILE_BASE64 to CAPGO_IOS_PROVISIONING_MAP.
|
|
1862
1862
|
Discovers the main bundle ID from your Xcode project automatically.
|
|
1863
|
-
npx @capgo/cli build credentials migrate --platform ios
|
|
1863
|
+
npx @capgo/cli@latest build credentials migrate --platform ios
|
|
1864
1864
|
|
|
1865
1865
|
**Example:**
|
|
1866
1866
|
|