/capgo-cloud:capgo-live-updatesfrom capgo-cloud
Sets up and debugs Capgo OTA live updates in Capacitor apps using @capgo/capacitor-updater. Handles plugin configuration, autoUpdate modes, notifyAppReady, manual download/next/set flows, channel switching, and troubleshooting rollbacks or error codes.
Ships in capgo-cloud. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Wire @capgo/capacitor-updater into a Capacitor app, ship the first bundle, and keep rollback safe.
Facts below were checked against @capgo/capacitor-updater 8.54.2 and @capgo/cli 8.104 (November 2026).
TRIGGER when:
capacitor.config.*.notifyAppReady, autoUpdate modes, directUpdate, autoSplashscreen, setChannel, getLatest, download, next, set, or reset.Do not use when:
capgo-release-management.capgo-native-builds.capawesome-live-update-migration) or Ionic Appflow (ionic-appflow-migration).capgo-release-workflows.capgo-cli-usage.Only load a reference when its topic is in play.
| File | Load when |
|---|---|
references/configuration.md | Editing plugins.CapacitorUpdater in capacitor.config.*, choosing autoUpdate modes, self-hosted URLs |
references/js-api.md | Writing manual update flows, listeners, channel switching, or rollback code |
references/channels-and-rollouts.md | Channels, device self-assignment, progressive rollouts, version targeting |
references/ci-cd.md | Uploading from GitHub Actions, GitLab CI, or another CI |
references/troubleshooting.md | A device does not update, rolls back, or the backend returns an error code |
The updater major version follows the Capacitor major version.
| Capacitor | Install |
|---|---|
| 8.x | npm install @capgo/capacitor-updater@latest (8.x line) |
| 7.x | npm install @capgo/capacitor-updater@lts-v7 |
| 6.x | npm install @capgo/capacitor-updater@lts-v6 |
| 5.x | npm install @capgo/capacitor-updater@lts-v5 |
| 4.x | npm install @capgo/capacitor-updater@lts-v4 |
Capacitor 9 trap: Capacitor 9 is still prerelease (@capacitor/core@next). As of October 2026 there is no updater line for Capacitor 9. The 8.x line declares peerDependencies: @capacitor/core ^8.0.0. The @capgo/[email protected] on npm is an old Capacitor 5 release from 2023 and is marked deprecated, so never install it for Capacitor 9. Before you advise on a Capacitor 9 project, check the current tags with npm view @capgo/capacitor-updater dist-tags. If no Capacitor 9 line is listed, tell the user that.
Use existing authentication only for the user-requested app and operation. A successful login does not authorize uploads, releases, builds, credential export, or deletion. Confirm the target and effect when they are not already specified by the user.
.p8 key, keystore, or service-account JSON into the chat. Ask them to run npx @capgo/cli@latest login themselves (it opens the browser or asks for the key in a masked prompt), or to set CAPGO_TOKEN in their shell or CI secret store.npx @capgo/cli@latest downloads and runs the newest CLI from npm. Run it only inside the user's project and with their go-ahead. In CI, pin an exact version.package.json to get the @capacitor/core major and any existing @capgo/capacitor-updater.capacitor.config.ts|json to get appId, webDir, and any existing plugins.CapacitorUpdater.main.ts, main.tsx, App.vue setup, app.component.ts, and so on). That is where notifyAppReady() goes.The guided onboarding registers the app, installs the plugin, patches the entry point, builds, uploads, and verifies on a device:
npx @capgo/cli@latest init
Ask the user to run it in their terminal: it signs in through the browser (or uses the key saved by login), asks for the app ID, and uploads a first bundle, so get their go-ahead first. Do not ask for the API key in the chat. In monorepos, add --package-json, --main-file, and --capacitor-config.
init)npm install @capgo/capacitor-updater@latest # pick the tag from the Version Rule table
npx cap sync
npx @capgo/cli@latest app add com.example.app
Minimum config (autoUpdate defaults to true, which equals "atBackground"):
plugins: {
CapacitorUpdater: {
autoUpdate: true,
},
},
notifyAppReady() immediatelyimport { CapacitorUpdater } from '@capgo/capacitor-updater';
CapacitorUpdater.notifyAppReady();
appReadyTimeout (default 10000 ms), the bundle is marked failed and the previous one is restored.bundle upload checks for this call and fails with notifyAppReady() is missing in the build folder (...). Fix the source. Do not bypass the readiness check to make an upload succeed; fix initialization and verify rollback on a test channel.npm run build
npx @capgo/cli@latest bundle upload com.example.app --path ./dist --channel production
For instant-apply modes ("atInstall", "onLaunch", "always"), upload with --delta and set autoSplashscreen: true with @capacitor/splash-screen launchAutoHide: false. See references/configuration.md.
OTA can only change web assets. A new or upgraded native plugin, a Capacitor bump, or an edit under ios/, android/, or native config needs a store build. Check with:
npx @capgo/cli@latest bundle releaseType com.example.app --channel production # prints OTA or native
releaseType compares native package metadata only. It cannot see raw edits under ios/ or android/.
NSPrivacyAccessedAPICategoryUserDefaults with reason CA92.1 in PrivacyInfo.xcprivacy.publicKey, not privateKey. The private key (.capgo_key_v2) stays with the uploader and must never be in the app or the repo.resetWhenUpdate (default true) clears downloaded bundles when a new native build is installed. If you disable it, a store build older than the OTA bundle can break things.disable_dev_build, disable_emulator, ...). Check the channel options before you assume the plugin is broken.set() destroys the JS context. No code after it runs. Prefer next() to apply on the next background.capgo-release-management for key create / key save.npx @capgo/cli@latest doctor shows the installed updater version and flags anything outdated.grep -rn "notifyAppReady" src/ finds exactly one early call in the entry point.npx cap sync succeeds, then build and install the native app once on a real device.npx @capgo/cli@latest app debug com.example.app while you background and reopen the app. The log should show the check, the download, and set.npx @capgo/cli@latest probe --platform ios (or android) reports whether the backend would deliver an update to this config and explains why not.| Symptom / string | Fix |
|---|---|
notifyAppReady() is missing in the build folder | Add the call to the entry point, rebuild, then upload again |
index.html is missing in the root folder of <dir> | --path points at the wrong folder. Use the built webDir |
no_new_version_available | Normal: the device is already current |
disable_auto_update_to_major / _minor / _patch | Channel strategy blocks the jump. Align CapacitorUpdater.version or change --disable-auto-update |
cannot_update_via_private_channel | Enable self-assign on the channel (channel set <ch> --self-assign) |
on_premise_app (HTTP 429) | The appId is not in Capgo, the app is flagged on-prem, or the plan is cancelled |
| Update downloads then reverts on next launch | notifyAppReady() ran too late or not at all, or the bundle throws before it runs |
The full code list is in references/troubleshooting.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
capgo, ota-updates, capacitor, live-updates, mobile-deployment
7 skills in this plugin
/capgo-cli-usageEntry point for the Capgo CLI (`npx @capgo/cli@latest`). Maps the full command surface (init, login, doctor, probe, app, bundle, channel, key, account, organization, build, observe, get-qr, notifications, run device, mcp), explains API-key precedence (--apikey, CAPGO_TOKEN, ~/.capgo, ./.capgo), connects agents to Capgo through the hosted MCP (https://api.capgo.app/mcp) or the local CLI MCP, and routes to the narrower Capgo skill. Use when the user asks generally how to use the Capgo CLI, which command to run, how to authenticate it, how to connect Claude or another agent to Capgo, or gets "No Capgo API key found". Do not use when a specific Capgo skill already matches (capgo-live-updates, capgo-release-management, capgo-native-builds, capgo-organization-management)./capgo-cloudUmbrella skill for multi-product Capgo Cloud work in Capacitor apps, combining Capgo Build native binaries, Capgo live updates (OTA), store submission, organization setup, and agent access via the hosted Capgo MCP. Use when the user asks for a Capgo equivalent of a hosted mobile cloud (builds, live updates, and publishing together), wants to plan which Capgo products to use, or needs the order of operations across them. Do not use once the request narrows to one area. Switch to capgo-native-builds, capgo-release-management, capgo-live-updates, capgo-organization-management, or capgo-cli-usage./capgo-native-buildsUse for Capgo Cloud Build (Capgo Build) native iOS and Android workflows, including CLI login and API-key precedence, `build init` onboarding, signing credential save/update/export, `build request` with TestFlight, App Store, or Play upload, temporary IPA/APK/AAB download links (`--output-upload`), prescan failures, `build needed` OTA-vs-native gating, and CI secrets. Use when errors mention "No credentials found for this app and platform", "Legacy provisioning profile format detected", "Missing required argument: --platform", or prescan check ids. Do not use for OTA bundle uploads (capgo-release-management), updater plugin setup (capgo-live-updates), or local Xcode/Gradle builds and generic CI runners (capacitor-ci-cd)./capgo-organization-managementGuides Capgo account lookup and organization administration with the CLI, including `account whoami`, `organization list/add/members/set/delete`, 2FA enforcement, password policy, API-key expiration and hashed-key policy, and apps per organization. Use when listing or creating Capgo organizations, auditing members' 2FA before enforcing it, tightening org security settings, or resolving "Access Denied: Two-Factor Authentication Required" or "Insufficient permissions". Do not use for OTA bundle or channel work (capgo-release-management), native builds (capgo-native-builds), or app-side updater code (capgo-live-updates)./capgo-release-managementRuns 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`, preview QR codes, and `key create/save` 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 <channel> channel", or "Cannot upload the same bundle content". Do not use for updater plugin wiring in app code (capgo-live-updates), native binaries (capgo-native-builds), or org/member administration (capgo-organization-management)./capgo-release-workflowsDesigns repository-owned release pipelines for Capacitor apps that combine Capgo live updates, native builds (Capgo Build or the team's own CI runners), and App Store / Play publishing, with an automatic OTA-vs-native gate (`bundle releaseType`, `build needed`), staged channels, and rollback. Use when the user wants one release system covering OTA, builds, and store publishing, is replacing a hosted release service with CI they own, or asks how CI should decide between a live update and a store build. Do not use for single-step tasks (capgo-release-management, capgo-native-builds, capgo-live-updates), non-Capacitor apps, or Ionic Enterprise plugin migration (ionic-enterprise-sdk-migration).npx claudepluginhub cap-go/capgo-skills --plugin capgo-cloudOther plugins' skills for the same job