---
description: Practical Capawesome Cloud CLI examples — build a debug APK, ship a Live Update, roll back, sign a bundle, and automate in CI.
title: CLI Examples - Capawesome
image: https://capawesome.io/docs/assets/images/social/cloud/cli/examples.png
---

<!doctype html> 

[Skip to content ](#examples) 

[🔐 Introducing the **Capacitor Vault** plugin — store secrets behind biometrics or a device passcode. ](/blog/announcing-the-capacitor-vault-plugin/) 

* [ SDKs ](/docs/sdks/)
* [ Formbricks ](/docs/sdks/capacitor/formbricks/)
* [ Geocoder ](/docs/sdks/capacitor/geocoder/)
* [ Google Sign-In ](/docs/sdks/capacitor/google-sign-in/)
* [ Grafana Faro ](/docs/sdks/capacitor/grafana-faro/)
* [ libSQL ](/docs/sdks/capacitor/libsql/)
* [ Live Update ](/docs/sdks/capacitor/live-update/)
* [ Managed Configurations ](/docs/sdks/capacitor/managed-configurations/)
* [ Media Session ](/docs/sdks/capacitor/media-session/)
* [ ML Kit ](/docs/sdks/capacitor/mlkit/)
* [ Navigation Bar ](/docs/sdks/capacitor/navigation-bar/)
* [ NFC ](/docs/sdks/capacitor/nfc/)
* [ OAuth ](/docs/sdks/capacitor/oauth/)
* [ Pedometer ](/docs/sdks/capacitor/pedometer/)
* [ Photo Editor ](/docs/sdks/capacitor/photo-editor/)
* [ PostHog ](/docs/sdks/capacitor/posthog/)
* [ Printer ](/docs/sdks/capacitor/printer/)
* [ Purchases ](/docs/sdks/capacitor/purchases/)
* [ RealtimeKit ](/docs/sdks/capacitor/realtimekit/)
* [ Screen Orientation ](/docs/sdks/capacitor/screen-orientation/)
* [ Screenshot ](/docs/sdks/capacitor/screenshot/)
* [ Secure Preferences ](/docs/sdks/capacitor/secure-preferences/)
* [ Speech Recognition ](/docs/sdks/capacitor/speech-recognition/)
* [ Speech Synthesis ](/docs/sdks/capacitor/speech-synthesis/)
* [ Share Target ](/docs/sdks/capacitor/share-target/)
* [ Square Mobile Payments ](/docs/sdks/capacitor/square-mobile-payments/)
* [ SQLite ](/docs/sdks/capacitor/sqlite/)
* [ Superwall ](/docs/sdks/capacitor/superwall/)
* [ Torch ](/docs/sdks/capacitor/torch/)
* [ Vault ](/docs/sdks/capacitor/vault/)
* [ Wifi ](/docs/sdks/capacitor/wifi/)
* [ Zip ](/docs/sdks/capacitor/zip/)
* [ Cordova ](/docs/sdks/cordova/)
* [ Cloud ](/docs/cloud/)
* [ Integrations ](/docs/cloud/live-updates/integrations/)
* Concepts
* Reference
* [ Troubleshooting ](/docs/cloud/live-updates/troubleshooting/)
* [ FAQ ](/docs/cloud/live-updates/faq/)
* [ Native Builds ](/docs/cloud/native-builds/)
* [ Set Up Environments ](/docs/cloud/native-builds/environments/)
* [ Overwrite Native Configurations ](/docs/cloud/native-builds/native-configurations/)
* [ Auto-Increment Build Numbers ](/docs/cloud/native-builds/auto-incrementing-build-numbers/)
* [ Configure the Web Build Script ](/docs/cloud/native-builds/web-build-script/)
* [ Build from a Monorepo ](/docs/cloud/native-builds/monorepo/)
* [ Use pnpm, Yarn, or bun ](/docs/cloud/native-builds/package-managers/)
* [ Install Private npm Packages ](/docs/cloud/native-builds/npm-private-registry/)
* [ Override the Java Version ](/docs/cloud/native-builds/override-java-version/)
* [ Custom iOS Provisioning Profiles ](/docs/cloud/native-builds/custom-ios-provisioning-profiles/)
* [ Build without Git ](/docs/cloud/native-builds/build-without-git/)
* [ Access Git Behind a Firewall ](/docs/cloud/native-builds/firewall-access/)
* [ Integrations ](/docs/cloud/native-builds/integrations/)
* Reference
* [ Troubleshooting ](/docs/cloud/native-builds/troubleshooting/)
* [ FAQ ](/docs/cloud/native-builds/faq/)
* [ App Store Publishing ](/docs/cloud/app-store-publishing/)
* [ Submit a Build ](/docs/cloud/app-store-publishing/submit-a-build/)
* [ Submit Automatically After a Build ](/docs/cloud/app-store-publishing/submit-automatically/)
* [ Troubleshooting ](/docs/cloud/app-store-publishing/troubleshooting/)
* [ FAQ ](/docs/cloud/app-store-publishing/faq/)
* [ Automations ](/docs/cloud/automations/)
* [ Reference ](/docs/cloud/automations/reference/)
* [ Troubleshooting ](/docs/cloud/automations/troubleshooting/)
* [ FAQ ](/docs/cloud/automations/faq/)
* [ Assist ](/docs/cloud/assist/)
* [ CLI ](/docs/cloud/cli/)
* [ Scripting ](/docs/cloud/cli/scripting/)
* [ Telemetry ](/docs/cloud/cli/telemetry/)
* APIs and SDKs
* [ Webhooks ](/docs/cloud/webhooks/)
* [ Integrations ](/docs/cloud/integrations/)
* Account
* [ Organization ](/docs/cloud/organizations/)
* [ Two-Factor Enforcement ](/docs/cloud/organizations/two-factor-authentication/)
* [ Audit Logs ](/docs/cloud/organizations/audit-logs/)
* [ Billing ](/docs/cloud/organizations/billing/)
* [ License Keys ](/docs/cloud/license-keys/)
* [ AI ](/docs/ai/)
* [ Insiders ](/docs/insiders/)
* [ Billing & Plans ](/docs/insiders/billing-and-plans/)
* [ FAQ ](/docs/insiders/faq/)
* [ License ](https://capawesome.io/legal/eula/)
* [ Support ](/docs/support/)
* [ Contributing ](/docs/contributing/)
* Contributing code
* [ Code of Conduct ](/docs/contributing/code-of-conduct/)
* [ Questions ](https://docs.github.com/en/discussions/collaborating-with-your-community-using-discussions/participating-in-a-discussion#creating-a-discussion)
* [ Blog ](/blog/)
* Categories

# Examples[¶](#examples "Permanent link")

Practical recipes using the [Capawesome CLI](/docs/cloud/cli/). Each one is a starting point you can adapt — see the [Command reference](/docs/cloud/cli/commands/) for the full set of options on any command.

## List your apps and builds[¶](#list-your-apps-and-builds "Permanent link")

To see what's in your account, list your apps, then the builds for one of them:

`[](#%5F%5Fcodelineno-0-1)npx @capawesome/cli apps:list
[](#%5F%5Fcodelineno-0-2)npx @capawesome/cli apps:builds:list --app-id "$APP_ID"
`

## Build a debug APK for Android[¶](#build-a-debug-apk-for-android "Permanent link")

For quick on-device testing, build a debug APK from a Git branch:

`[](#%5F%5Fcodelineno-1-1)npx @capawesome/cli apps:builds:create --platform android --type debug --git-ref main
`

## Build an iOS app for the App Store[¶](#build-an-ios-app-for-the-app-store "Permanent link")

To produce a store-ready iOS build, use the `app-store` type with the matching signing certificate:

`[](#%5F%5Fcodelineno-2-1)npx @capawesome/cli apps:builds:create --platform ios --type app-store --git-ref main
`

## Download a build artifact[¶](#download-a-build-artifact "Permanent link")

Once a build finishes, download its artifact to a local path:

`[](#%5F%5Fcodelineno-3-1)npx @capawesome/cli apps:builds:download --apk ./app.apk
`

## Build your web app and publish a Live Update[¶](#build-your-web-app-and-publish-a-live-update "Permanent link")

To ship a web change over the air, build locally and upload the result to a channel:

`[](#%5F%5Fcodelineno-4-1)npm run build
[](#%5F%5Fcodelineno-4-2)npx @capawesome/cli apps:liveupdates:upload --channel production
`

## Deploy a Live Update to multiple channels[¶](#deploy-a-live-update-to-multiple-channels "Permanent link")

To ship the same bundle to several channels in one go, repeat the `--channel` flag for each target:

`[](#%5F%5Fcodelineno-5-1)npx @capawesome/cli apps:liveupdates:create --channel production --channel staging
`

## Roll back the latest Live Update[¶](#roll-back-the-latest-live-update "Permanent link")

If a release misbehaves, roll the channel back to the previous bundle:

`[](#%5F%5Fcodelineno-6-1)npx @capawesome/cli apps:liveupdates:rollback --channel production
`

## Sign and publish a bundle[¶](#sign-and-publish-a-bundle "Permanent link")

To publish a signed bundle, pass your private key alongside the upload:

`[](#%5F%5Fcodelineno-7-1)npx @capawesome/cli apps:liveupdates:upload --channel production --private-key private.pem
`

## Submit a build to a store[¶](#submit-a-build-to-a-store "Permanent link")

To submit an existing build to a configured destination, create a deployment:

`[](#%5F%5Fcodelineno-8-1)npx @capawesome/cli apps:deployments:create --build-number 42 --destination my-destination
`

## Automate in CI[¶](#automate-in-ci "Permanent link")

Running these commands from a pipeline has its own considerations — token authentication, non-interactive flags, parsing JSON output, and waiting on builds. See [Scripting](/docs/cloud/cli/scripting/) for a complete walkthrough and a full build-and-deploy CI example.

## Next steps[¶](#next-steps "Permanent link")

* [Command reference](/docs/cloud/cli/commands/) — every command and option.
* [Scripting](/docs/cloud/cli/scripting/) — automate the CLI in scripts and CI.
* [Usage](/docs/cloud/cli/usage/) — global flags, JSON output, and exit codes.
* [Integrations](/docs/cloud/integrations/) — wire these recipes into your CI/CD provider.

June 13, 2026 

Back to top