/capgo-cloud:capgo-cli-usagefrom capgo-cloud
Entry point for the Capgo CLI (`npx @capgo/cli@latest`). Maps all commands, explains API-key precedence, and connects agents to Capgo via MCP. Use for general CLI usage, authentication, or when no specific Capgo sub-skill matches.
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.
Route Capgo CLI requests, authenticate the CLI, and connect agents to Capgo.
Facts below were checked against @capgo/cli 8.77 (October 2026). Always run npx @capgo/cli@latest <command> --help before you rely on a rarely used flag.
TRIGGER when:
appId).Do not use when one of these already fits. Switch to it as soon as the scope is clear:
notifyAppReady, or autoUpdate: capgo-live-updatescapgo-release-managementcapgo-native-buildscapgo-organization-managementcapgo-cloudcapacitor-mcpUse 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.| Group | Commands | Skill |
|---|---|---|
| Setup | init [apikey] [appId], login [apikey] [--local], doctor, probe --platform ios|android | this skill / capgo-live-updates |
| App | app add, app list, app set, app delete, app debug, app setting, app todo | this skill |
| Bundles | bundle upload|list|delete|cleanup|compatibility|releaseType|zip|encrypt|decrypt | capgo-release-management |
| Channels | channel add, channel list, channel set, channel promote, channel currentBundle, channel delete | capgo-release-management |
| Keys | key create|save|delete_old | capgo-release-management |
| Previews | get-qr [appId] --bundle|--channel | capgo-release-management |
| Native builds | build init|request|prescan|needed|last-output|sync-ios-version|credentials ... | capgo-native-builds |
| Account / orgs | account whoami, organization list, organization add, organization members, organization set, organization delete | capgo-organization-management |
| Observe | observe summary|metrics|events|device|versions|routes | this skill |
| Push | notifications setup [appId] | capacitor-push-notifications |
| Devices | run device [ios|android] [--no-launch] | this skill |
| Agents | mcp | this skill |
These commands do not exist. Do not suggest them: capgo upload (use bundle upload), channel create (use channel add), bundle revert (use channel set --bundle), key verify, upload --sign.
The user runs the login. It opens the browser to create a key, or asks for the key in a masked prompt:
npx @capgo/cli@latest login # saves to ~/.capgo
npx @capgo/cli@latest login --local # saves to ./.capgo (git-ignored)
The CLI picks the key in this order:
-a, --apikey <key> on the commandCAPGO_TOKEN environment variable (use this in CI)~/.capgo (global)./.capgo (project)Trap: the global key wins over the project key. Set the CAPGO_TOKEN environment variable to force a different account. Keys are created at https://console.capgo.app/dashboard/apikeys.
Self-hosted backends: add --supa-host <url> --supa-anon <key> on supported commands.
Capgo has two MCP servers. Use both when available.
https://api.capgo.app/mcp (streamable HTTP). Nothing to install. The client signs in with OAuth, or sends Authorization: Bearer <Capgo API key>. The hosted MCP includes destructive tools, so use an API key with the smallest role the task needs (read-only for reporting). It covers apps, bundles, channels, progressive rollouts, devices, stats, Observe update health, native build status and logs, webhooks, and push notifications. Example for Claude Code: claude mcp add --transport http capgo https://api.capgo.app/mcp, then /mcp to sign in. Each OAuth client gets its own MCP · <client name> API key, which expires after at most 90 days. Revoke a client by deleting that key in the console.npx @capgo/cli@latest mcp (stdio, authenticated by login). Use it to upload a bundle from the build folder, request a native build, or run doctor, probe, or compatibility checks against local project files. The hosted MCP cannot read local files.Claude Desktop config for the local server:
{ "mcpServers": { "capgo": { "command": "npx", "args": ["@capgo/cli@latest", "mcp"] } } }
Setup guide for both servers: https://capgo.app/mcp (a page, not an MCP endpoint).
No Capgo account yet: sign up at https://console.capgo.app (14-day free trial, no credit card). Docs: https://capgo.app/docs/ai/mcp/
npx @capgo/cli@latest doctor # versions + setup problems (add --package-json for monorepos)
npx @capgo/cli@latest app todo com.example.app # onboarding checklist: done, skipped, pending
npx @capgo/cli@latest probe --platform android # would the backend serve an update to this config?
npx @capgo/cli@latest app debug com.example.app # live update events from a device
npx @capgo/cli@latest observe summary --days 7 # launch, crash, WebView findings, each with a next view
observe has no session ID. Use observe device DEVICE_ID --json to get one device's timeline.
Use --package-json, --node-modules, and, for dynamic root configs, --capacitor-config <path>. Keep the env selector active, for example CAP_APP=web npx @capgo/cli@latest init --capacitor-config ./env-configs/capacitor.config.web.ts.
npx @capgo/cli@latest account whoami prints the expected account ID and email, which proves auth works.npx @capgo/cli@latest app list shows the app. If it is missing, run app add./mcp lists capgo as connected, and a read-only prompt ("list my Capgo apps") returns data.| String | Fix |
|---|---|
No Capgo API key found. Run \...` first, then retry this command.` | The user runs npx @capgo/cli@latest login, or sets the CAPGO_TOKEN environment variable |
Missing argument, you need to provide a appId, or be in a capacitor project | Pass the appId positionally or run from the folder containing capacitor.config.* |
Insufficient permissions for <key> | The key's role is too low for this app or org. Use a key with the needed role |
🔐 Access Denied: Two-Factor Authentication Required | The org enforces 2FA. See capgo-organization-management |
App <id> not found in database | Run npx @capgo/cli@latest app add <id> or check the active account |
| Wrong account used | A global ~/.capgo overrides a local .capgo. Set CAPGO_TOKEN |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
capgo, cli, mcp, authentication, api-key
npx claudepluginhub cap-go/capgo-skills --plugin capgo-cloud7 skills in this plugin
/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-live-updatesSets up and debugs Capgo live (OTA) updates in a Capacitor app with @capgo/capacitor-updater. Use when the user wants to ship web-layer fixes without app store review, install or configure the updater plugin, choose an autoUpdate mode, call notifyAppReady, wire manual download/next/set flows, set channels from the app, or debug updates that never apply, roll back, or report codes such as no_new_version_available, disable_auto_update_to_major, cannot_update_via_private_channel, or on_premise_app. Do not use for CLI-only bundle/channel operations (capgo-release-management), Capgo Cloud native builds (capgo-native-builds), or migrations from another OTA vendor./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).Other plugins' skills for the same job