{"slug":"capgo-release-management","title":"capgo-release-management","summary":"Runs Capgo OTA release operations with the CLI, including `bundle upload` (channels, delta, rollout, encryption, version bumps), `bundle compatibility` and `releaseType` checks, `channel add/set/promote/currentBundle/delete`, progressive rollouts and rollback, `bundle cleanup`, p","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-05T18:17:07.828736Z","repo":{"url":"https://github.com/Cap-go/capgo-skills","stars":79,"forks":4,"license":"MIT","updatedAt":"2026-12-05T16:44:30Z"},"bodyHtml":"<hr>\n<h2>name: capgo-release-management\ndescription: Runs Capgo OTA release operations with the CLI, including <code>bundle upload</code> (channels, delta, rollout, encryption, version bumps), <code>bundle compatibility</code> and <code>releaseType</code> checks, <code>channel add/set/promote/currentBundle/delete</code>, progressive rollouts and rollback, <code>bundle cleanup</code>, preview QR codes, and <code>key create/save</code> encryption setup. Use when the user ships, promotes, rolls back, or cleans up Capgo bundles, or hits upload errors such as \"Version X already exists\", \"Bundle NOT compatible with </h2>\n<h1>Capgo Release Management</h1>\n<p>Ship, promote, roll back, and clean up Capgo OTA bundles from the CLI.</p>\n<p>Facts below were checked against <code>@capgo/cli</code> 8.77 (October 2026). Every command accepts <code>-a, --apikey</code>. The <code>appId</code> can be omitted inside a Capacitor project.</p>\n<h2>When to Use</h2>\n<p>TRIGGER when:</p>\n<ul>\n<li>The user uploads, lists, deletes, or cleans up bundles, or asks which version a channel serves.</li>\n<li>The user creates or configures channels, promotes staging to production, starts, pauses, or rolls back a progressive rollout, or rolls back a bad release.</li>\n<li>The user asks whether a change is OTA-safe (<code>bundle compatibility</code>, <code>bundle releaseType</code>).</li>\n<li>The user sets up bundle encryption (<code>key create</code>, <code>key save</code>, <code>--key-v2</code>).</li>\n</ul>\n<p>Do not use when:</p>\n<ul>\n<li>The work is app-side updater code or config (<code>notifyAppReady</code>, <code>autoUpdate</code>, <code>setChannel</code>). Use <code>capgo-live-updates</code>.</li>\n<li>A native binary is needed. Use <code>capgo-native-builds</code>.</li>\n<li>The user manages organizations, members, 2FA, or API-key policy. Use <code>capgo-organization-management</code>.</li>\n<li>The user wants an end-to-end release pipeline design. Use <code>capgo-release-workflows</code>.</li>\n</ul>\n<h2>Command Map</h2>\n<table>\n<thead>\n<tr>\n<th>Goal</th>\n<th>Command</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Upload and link</td>\n<td><code>bundle upload [appId] --path ./dist --channel production</code> (comma-separate several channels)</td>\n</tr>\n<tr>\n<td>Is it OTA-safe?</td>\n<td><code>bundle releaseType [appId] --channel production</code> prints <code>OTA</code> or <code>native</code></td>\n</tr>\n<tr>\n<td>Detailed native diff</td>\n<td><code>bundle compatibility [appId] --channel production [--text]</code></td>\n</tr>\n<tr>\n<td>What is live</td>\n<td><code>channel currentBundle production [appId] --quiet</code></td>\n</tr>\n<tr>\n<td>Promote</td>\n<td><code>channel promote staging production [appId]</code></td>\n</tr>\n<tr>\n<td>Roll back</td>\n<td><code>channel set production [appId] --bundle &lt;previous-version&gt;</code></td>\n</tr>\n<tr>\n<td>Rollout</td>\n<td><code>bundle upload ... --rollout 10</code>, then <code>channel set ... --rollout-percentage 50</code> / <code>--rollout-promote</code> / <code>--rollout-rollback</code></td>\n</tr>\n<tr>\n<td>Create channel</td>\n<td><code>channel add beta [appId] [--default] [--self-assign]</code></td>\n</tr>\n<tr>\n<td>Channel policy</td>\n<td><code>channel set &lt;ch&gt; --disable-auto-update major\\|minor\\|patch\\|metadata\\|none</code> plus <code>--ios/--android/--dev/--prod/--emulator/--device</code> toggles</td>\n</tr>\n<tr>\n<td>List</td>\n<td><code>bundle list [appId]</code>, <code>channel list [appId]</code></td>\n</tr>\n<tr>\n<td>Clean up</td>\n<td><code>bundle cleanup [appId] --bundle 1.0 --keep 3</code></td>\n</tr>\n<tr>\n<td>Delete</td>\n<td><code>bundle delete &lt;version&gt; [appId]</code>, <code>channel delete &lt;ch&gt; [appId]</code></td>\n</tr>\n<tr>\n<td>Preview QR</td>\n<td><code>app set [appId] --preview</code> once, then <code>get-qr [appId] --channel beta</code> or <code>bundle upload ... --qr-preview</code></td>\n</tr>\n<tr>\n<td>Encryption keys</td>\n<td><code>key create</code>, <code>key save --key ./.capgo_key_v2.pub</code>, <code>key delete_old</code></td>\n</tr>\n<tr>\n<td>Custom zip / external</td>\n<td><code>bundle zip [appId] --json</code>, <code>bundle encrypt &lt;zip&gt; &lt;checksum&gt;</code>, <code>bundle upload --external &lt;url&gt;</code></td>\n</tr>\n</tbody>\n</table>\n<p>All of these are <code>npx @capgo/cli@latest &lt;command&gt;</code>. Commands that do <strong>not</strong> exist (they come from old docs or other tools): <code>channel create</code>, <code>bundle revert</code>, <code>upload --sign</code>, <code>key verify</code>, and a top-level <code>capgo upload</code> without <code>bundle</code>.</p>\n<h2>Procedure</h2>\n<h3>1. Inspect first</h3>\n<pre><code>npx @capgo/cli@latest channel list com.example.app\nnpx @capgo/cli@latest channel currentBundle production com.example.app --quiet\nnpx @capgo/cli@latest bundle releaseType com.example.app --channel production\n</code></pre>\n<p>Report the current live version and the OTA/native verdict before you change anything. If the verdict is <code>native</code>, stop and hand off to <code>capgo-native-builds</code> (or the user's native pipeline).</p>\n<h3>2. Upload</h3>\n<pre><code>npm run build\nnpx @capgo/cli@latest bundle upload com.example.app --path ./dist --channel staging --comment \"$(git rev-parse --short HEAD)\"\n</code></pre>\n<ul>\n<li>The version comes from <code>package.json</code> unless you pass <code>--bundle &lt;semver&gt;</code>. It must be unique, greater than <code>0.0.0</code>, and never a previously deleted version.</li>\n<li>Use <code>--delta</code> for instant-apply apps. The CLI refuses delta uploads with more than 10,000 files. Use <code>--no-delta</code> in that case.</li>\n<li>Use <code>--fail-on-incompatible</code> in CI. Use <code>--accept-incompatible</code> only when the JS guards missing plugins. These two flags and <code>--ignore-metadata-check</code> cannot be combined.</li>\n</ul>\n<h3>3. Promote and roll out</h3>\n<ul>\n<li>Promote: <code>npx @capgo/cli@latest channel promote staging production com.example.app</code>. It runs the same compatibility checks as <code>channel set --bundle</code>.</li>\n<li>Gradual rollout: upload with <code>--rollout &lt;pct&gt;</code>, then watch the stats before you run <code>--rollout-promote</code>.</li>\n<li>Only change which channel is the <strong>default</strong> (<code>channel set &lt;ch&gt; --state default</code>, or <code>channel add --default</code>) when the user explicitly wants to move production traffic.</li>\n</ul>\n<h3>4. Roll back</h3>\n<pre><code>npx @capgo/cli@latest bundle list com.example.app\nnpx @capgo/cli@latest channel set production com.example.app --bundle 1.4.2\n# or, during a rollout:\nnpx @capgo/cli@latest channel set production com.example.app --rollout-rollback\n</code></pre>\n<p>Devices pick up the change on their next update check.</p>\n<h3>5. Encryption (optional, for sensitive apps)</h3>\n<pre><code>npx @capgo/cli@latest key create        # writes .capgo_key_v2 (private) + .capgo_key_v2.pub, saves the public key to config\nnpx cap sync                             # the public key must ship in the native app\nnpx @capgo/cli@latest bundle upload com.example.app --key-v2 ./.capgo_key_v2 --channel production\n</code></pre>\n<p>In CI, keep the private key in the CI secret store, write it to <code>./.capgo_key_v2</code> in the job, and pass the same <code>--key-v2 ./.capgo_key_v2</code>. The private key never leaves the runner. Add <code>.capgo_key_v2</code> to <code>.gitignore</code> and never commit it. A changed key needs a new native build: devices with the old <code>publicKey</code> fail with <code>key_id_mismatch</code>.</p>\n<h2>Traps</h2>\n<ul>\n<li>On a channel that has a rollout configured, a plain <code>bundle upload --channel production</code> sets the <strong>rollout target</strong>, and stable is unchanged. Replace stable explicitly with <code>channel set --bundle</code>.</li>\n<li><code>bundle cleanup --ignore-channel</code> also deletes the linked channels. Never add it without asking.</li>\n<li><code>bundle delete</code> is permanent, and the deleted version cannot be reused. Prefer relinking an older bundle to roll back.</li>\n<li><code>releaseType</code> only sees native package metadata, not raw <code>ios/</code> or <code>android/</code> edits.</li>\n<li><code>--self-assign</code> on upload changes the channel's settings, not just this bundle.</li>\n</ul>\n<h2>Verification</h2>\n<ol>\n<li><code>npx @capgo/cli@latest channel currentBundle production com.example.app --quiet</code> prints the expected version.</li>\n<li><code>npx @capgo/cli@latest probe --platform ios</code> (run in the project) reports whether an update would be served.</li>\n<li><code>npx @capgo/cli@latest app debug com.example.app</code> shows a test device downloading and setting the bundle.</li>\n<li>For encrypted uploads, a device on the new native build applies the update with no <code>key_id_mismatch</code> error.</li>\n</ol>\n<h2>Error Handling</h2>\n<table>\n<thead>\n<tr>\n<th>String</th>\n<th>Fix</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>❌ Version X already exists</code></td>\n<td>Bump <code>--bundle</code>, use <code>--auto-bump patch</code>, or pass <code>--version-exists-ok</code> in CI re-runs</td>\n</tr>\n<tr>\n<td><code>Cannot upload the same bundle content</code></td>\n<td>The checksum is already on that channel. Rebuild with changes, or pass <code>--ignore-checksum-check</code></td>\n</tr>\n<tr>\n<td><code>Bundle NOT compatible with &lt;channel&gt; channel</code></td>\n<td>Native packages differ. Do a native build first, or use <code>--accept-incompatible</code> if the code guards it</td>\n</tr>\n<tr>\n<td><code>notifyAppReady() is missing in the build folder (...)</code></td>\n<td>Fix the app entry point (see <code>capgo-live-updates</code>)</td>\n</tr>\n<tr>\n<td><code>index.html is missing in the root folder of &lt;dir&gt;</code></td>\n<td>Wrong <code>--path</code></td>\n</tr>\n<tr>\n<td><code>Cannot find channel &lt;name&gt;</code></td>\n<td>Check <code>channel list</code>. Names are case sensitive</td>\n</tr>\n<tr>\n<td><code>Channel strategy &lt;x&gt; is not known</code></td>\n<td>Use <code>major</code>, <code>minor</code>, <code>patch</code>, <code>metadata</code>, or <code>none</code></td>\n</tr>\n<tr>\n<td><code>No Capgo API key found. Run ... first, then retry this command.</code></td>\n<td><code>npx @capgo/cli@latest login</code>, set <code>CAPGO_TOKEN</code>, or pass <code>-a</code></td>\n</tr>\n<tr>\n<td><code>Insufficient permissions for &lt;key&gt;</code></td>\n<td>The API key role is too low for this app. Ask an admin for an upload-capable key</td>\n</tr>\n<tr>\n<td><code>Cannot upload bundle ( try again with --tus option)</code></td>\n<td>Retry with <code>--tus</code>, and raise <code>--timeout</code> for large bundles</td>\n</tr>\n</tbody>\n</table>\n<h2>Resources</h2>\n<ul>\n<li>Bundle reference: <a href=\"https://capgo.app/docs/cli/reference/bundle/\">https://capgo.app/docs/cli/reference/bundle/</a></li>\n<li>Channel reference: <a href=\"https://capgo.app/docs/cli/reference/channel/\">https://capgo.app/docs/cli/reference/channel/</a></li>\n<li>Progressive rollouts: <a href=\"https://capgo.app/docs/live-updates/progressive-rollouts/\">https://capgo.app/docs/live-updates/progressive-rollouts/</a></li>\n<li>Encryption: <a href=\"https://capgo.app/docs/live-updates/encryption/\">https://capgo.app/docs/live-updates/encryption/</a></li>\n<li>Compatibility: <a href=\"https://capgo.app/docs/live-updates/compatibility/\">https://capgo.app/docs/live-updates/compatibility/</a></li>\n</ul>\n","files":[{"path":"metadata.json","sizeBytes":953,"isText":true},{"path":"SKILL.md","sizeBytes":8807,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"notes-only","suspicious":0,"notes":4,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-05T18:17:28.785938Z","sha256":"3AFAE8B595B981BA11672EF0C88C5E026D538EDEA05803F7433B5976BFF5C33A","sizeBytes":4011},"review":null,"source":{"repositoryUrl":"https://github.com/Cap-go/capgo-skills","path":"plugins/capgo-cloud/skills/capgo-release-management","license":"MIT","commit":"76462e3a0041ee8dd0d370c344d9fd3ae2c29cdb","subtreeSha":"8A28DE0E150A5D946CFF02D96159A59A5D8BFE30491DE9DA0FEF7BDC4EF31DA1","lastSyncedAt":"2026-12-05T18:17:06.651351Z"},"reviewedAt":"2026-12-05T18:17:55.299531Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/Cap-go/capgo-skills/tree/main/plugins/capgo-cloud/skills/capgo-release-management"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install cap-go-capgo-skills@llmmart"},{"target":"git","command":"git clone https://github.com/Cap-go/capgo-skills.git"}]}