@capgo/cli 7.104.0 → 7.105.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 +30 -0
- package/dist/index.js +411 -392
- package/dist/package.json +1 -1
- package/dist/src/build/last-output-command.d.ts +6 -0
- package/dist/src/build/output-record.d.ts +30 -0
- package/dist/src/schemas/build.d.ts +1 -0
- package/dist/src/sdk.js +231 -230
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,6 +74,7 @@ Follow the documentation here: https://capacitorjs.com/docs/getting-started/
|
|
|
74
74
|
- [Needed](#build-needed)
|
|
75
75
|
- [Init](#build-init)
|
|
76
76
|
- [Request](#build-request)
|
|
77
|
+
- [Last-output](#build-last-output)
|
|
77
78
|
- [Credentials](#build-credentials)
|
|
78
79
|
- [Save](#build-credentials-save)
|
|
79
80
|
- [List](#build-credentials-list)
|
|
@@ -1157,6 +1158,11 @@ npx @capgo/cli@latest organisation delete
|
|
|
1157
1158
|
Save your credentials first:
|
|
1158
1159
|
npx @capgo/cli build credentials save --appId <your-app-id> --platform ios
|
|
1159
1160
|
npx @capgo/cli build credentials save --appId <your-app-id> --platform android
|
|
1161
|
+
📤 CAPTURE THE OUTPUT URL FROM CI:
|
|
1162
|
+
Pass --output-record to persist the download URL + QR code, then read it
|
|
1163
|
+
back with `build last-output`:
|
|
1164
|
+
npx @capgo/cli build request <appId> --platform android --output-upload --output-record /tmp/build.json
|
|
1165
|
+
URL=$(npx @capgo/cli build last-output --path /tmp/build.json --field outputUrl)
|
|
1160
1166
|
|
|
1161
1167
|
### <a id="build-needed"></a> 🔹 **Needed**
|
|
1162
1168
|
|
|
@@ -1252,6 +1258,7 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
|
|
|
1252
1258
|
| **--output-upload** | <code>boolean</code> | Override output upload behavior for this build only (enable). Precedence: CLI > env > saved credentials |
|
|
1253
1259
|
| **--no-output-upload** | <code>boolean</code> | Override output upload behavior for this build only (disable). Precedence: CLI > env > saved credentials |
|
|
1254
1260
|
| **--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 |
|
|
1261
|
+
| **--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`. |
|
|
1255
1262
|
| **--skip-build-number-bump** | <code>boolean</code> | Skip automatic build number/version code incrementing. Uses whatever version is already in the project files. |
|
|
1256
1263
|
| **--no-skip-build-number-bump** | <code>boolean</code> | Override saved credentials to re-enable automatic build number incrementing for this build only. |
|
|
1257
1264
|
| **-a** | <code>string</code> | API key to link to your account |
|
|
@@ -1259,6 +1266,29 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
|
|
|
1259
1266
|
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
1260
1267
|
| **--verbose** | <code>boolean</code> | Enable verbose output with detailed logging |
|
|
1261
1268
|
|
|
1269
|
+
### <a id="build-last-output"></a> 🔹 **Last-output**
|
|
1270
|
+
|
|
1271
|
+
```bash
|
|
1272
|
+
npx @capgo/cli@latest build last-output
|
|
1273
|
+
```
|
|
1274
|
+
|
|
1275
|
+
Read the build output record written by a previous `build request --output-record`.
|
|
1276
|
+
Prints the full JSON by default, a single field with --field, or the ASCII QR
|
|
1277
|
+
code with --qr. Useful in CI to grab the download URL or QR for posting back
|
|
1278
|
+
to a PR or issue.
|
|
1279
|
+
Examples:
|
|
1280
|
+
npx @capgo/cli build last-output --path /tmp/build.json
|
|
1281
|
+
npx @capgo/cli build last-output --path /tmp/build.json --field outputUrl
|
|
1282
|
+
npx @capgo/cli build last-output --path /tmp/build.json --qr
|
|
1283
|
+
|
|
1284
|
+
**Options:**
|
|
1285
|
+
|
|
1286
|
+
| Param | Type | Description |
|
|
1287
|
+
| -------------- | ------------- | -------------------- |
|
|
1288
|
+
| **--path** | <code>string</code> | Path to the JSON record written by --output-record (required) |
|
|
1289
|
+
| **--field** | <code>string</code> | Print a single field (one of: jobId, appId, platform, buildMode, status, outputUrl, qrCodeAscii, qrCodePngPath, finishedAt, schemaVersion) |
|
|
1290
|
+
| **--qr** | <code>boolean</code> | Print the rendered ASCII QR code (shortcut for --field qrCodeAscii) |
|
|
1291
|
+
|
|
1262
1292
|
### <a id="build-credentials"></a> 🔹 **Credentials**
|
|
1263
1293
|
|
|
1264
1294
|
Manage build credentials stored locally on your machine.
|