@capgo/cli 8.0.0 → 8.0.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "8.0.0",
4
+ "version": "8.0.2",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -86,6 +86,7 @@
86
86
  "test:analytics-error-category": "bun test/test-analytics-error-category.mjs",
87
87
  "test:analytics-org-resolver": "bun test/test-analytics-org-resolver.mjs",
88
88
  "test:supabase-perf": "bun test/test-supabase-perf.mjs",
89
+ "test:preview-qr": "bun test/test-preview-qr.mjs",
89
90
  "test:mcp-analytics": "bun test/test-mcp-analytics.mjs",
90
91
  "test:app-created-source": "bun test/test-app-created-source.mjs",
91
92
  "test:doctor-analytics": "bun test/test-doctor-analytics.mjs",
@@ -110,7 +111,7 @@
110
111
  "test:app-verification": "bun test/test-app-verification.mjs",
111
112
  "test:pbxproj-parser": "bun test/test-pbxproj-parser.mjs",
112
113
  "test:manifest-path-encoding": "bun test/test-manifest-path-encoding.mjs",
113
- "test": "bun run build && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:fail-on-incompatible && bun run test:credentials && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:ci-prompts && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:mcp-analytics && bun run test:app-created-source && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:version-detection && bun run test:platform-paths && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:apple-api-import-helpers && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream",
114
+ "test": "bun run build && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:fail-on-incompatible && bun run test:credentials && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:ci-prompts && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:mcp-analytics && bun run test:app-created-source && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:version-detection && bun run test:platform-paths && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:apple-api-import-helpers && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream",
114
115
  "test:build-platform-selection": "bun test/test-build-platform-selection.mjs",
115
116
  "test:ai-log-capture": "bun test/test-ai-log-capture.mjs",
116
117
  "test:ai-analyze-flow": "bun test/test-ai-analyze-flow.mjs",
@@ -12,6 +12,24 @@ Use this skill for OTA update workflows in Capgo Cloud.
12
12
  - Prefer `npx @capgo/cli@latest ...` examples.
13
13
  - `appId` can often be inferred from the current Capacitor project.
14
14
  - Shared public flags often include `-a, --apikey`.
15
+ - Preview QR workflows require app preview to be enabled before the QR code can be printed.
16
+
17
+ ## Preview QR workflows
18
+
19
+ ### `get-qr [appId] [target]`
20
+
21
+ - Example: `npx @capgo/cli@latest get-qr com.example.app --bundle 1.2.3`
22
+ - Example: `npx @capgo/cli@latest get-qr com.example.app --channel production`
23
+ - Example: `npx @capgo/cli@latest get-qr com.example.app production --type channel`
24
+ - Use to print a terminal QR code for a bundle or channel preview.
25
+ - The target can be a bundle name, bundle id, channel name, or channel id.
26
+ - If a positional target matches both a bundle and a channel, add `--type bundle` or `--type channel`.
27
+ - Preview must already be enabled for the app; enable it with `npx @capgo/cli@latest app set com.example.app --preview`.
28
+ - Key options:
29
+ - `--bundle <bundle>`
30
+ - `--channel <channel>`
31
+ - `--type <bundle|channel>`
32
+ - `-a, --apikey <apikey>`
15
33
 
16
34
  ## Bundle workflows
17
35
 
@@ -26,6 +44,7 @@ Use this skill for OTA update workflows in Capgo Cloud.
26
44
  - Encryption is recommended for trustless distribution.
27
45
  - Interactive prompts are disabled automatically in CI and other non-interactive sessions so uploads do not block automation.
28
46
  - Optional upload prompts can remember the user's answer on the current machine so future uploads can skip the same question.
47
+ - Use `--qr-preview` to print a terminal QR code for the uploaded bundle after a successful upload. App preview must be enabled first.
29
48
  - Important options:
30
49
  - `-p, --path <path>`
31
50
  - `-c, --channel <channel>`
@@ -58,6 +77,7 @@ Use this skill for OTA update workflows in Capgo Cloud.
58
77
  - `--disable-brotli`
59
78
  - `--version-exists-ok`
60
79
  - `--self-assign`
80
+ - `--qr-preview`
61
81
  - S3 options: `--s3-region`, `--s3-apikey`, `--s3-apisecret`, `--s3-endpoint`, `--s3-bucket-name`, `--s3-port`, `--no-s3-ssl`
62
82
  - Signing options: `--key-v2`, `--key-data-v2`, `--bundle-url`, `--no-key`, `--display-iv-session`
63
83
  - Deprecated options still supported: `--multipart`, `--partial`, `--partial-only`
@@ -179,6 +199,7 @@ Use this skill for OTA update workflows in Capgo Cloud.
179
199
  - One channel must remain default.
180
200
  - Supports update policies `major`, `minor`, `metadata`, `patch`, and `none`.
181
201
  - Supports platform and device targeting.
202
+ - Use `--qr-preview` to print a terminal QR code for the updated channel. App preview must be enabled first.
182
203
  - Key options:
183
204
  - `-b, --bundle <bundle>`
184
205
  - `-s, --state <state>`
@@ -195,6 +216,7 @@ Use this skill for OTA update workflows in Capgo Cloud.
195
216
  - `--device`, `--no-device`
196
217
  - `--package-json <packageJson>`
197
218
  - `--ignore-metadata-check`
219
+ - `--qr-preview`
198
220
 
199
221
  ## Encryption key workflows
200
222
 
@@ -35,7 +35,7 @@ TanStack Intent skills should stay focused and under the validator line limit, s
35
35
  - `app add [appId]`: create an app in Capgo Cloud.
36
36
  - `app list`: list apps under the current account.
37
37
  - `app delete [appId]`: remove an app.
38
- - `app set [appId]`: update app settings such as name, icon, retention, and metadata exposure.
38
+ - `app set [appId]`: update app settings such as name, icon, retention, metadata exposure, and preview access with `--preview` or `--no-preview`.
39
39
  - `app setting [path]`: update Capacitor config values programmatically.
40
40
  - `app debug [appId]`: listen for live-update debug events, optionally for one device.
41
41
 
@@ -57,6 +57,7 @@ Load `skills/release-management/SKILL.md` when working with:
57
57
  - `bundle upload`, `bundle list`, `bundle delete`, `bundle cleanup`
58
58
  - `bundle compatibility`, `bundle releaseType`, `bundle zip`, `bundle encrypt`, `bundle decrypt`
59
59
  - `channel add`, `channel list`, `channel delete`, `channel set`, `channel currentBundle`
60
+ - `get-qr`
60
61
  - `key save`, `key create`, `key delete_old`
61
62
 
62
63
  ### `native-builds`
@@ -88,5 +89,6 @@ npx @capgo/cli@latest login YOUR_API_KEY
88
89
  npx @capgo/cli@latest doctor
89
90
  npx @capgo/cli@latest probe --platform ios
90
91
  npx @capgo/cli@latest app add com.example.app --name "My App"
92
+ npx @capgo/cli@latest get-qr com.example.app --channel production
91
93
  npx @capgo/cli@latest star-all
92
94
  ```