---
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 Electron Platform** — build desktop apps for macOS, Windows, and Linux. Free & open source. ](/blog/announcing-the-capacitor-electron-platform/) 

* [ 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/)
* [ Gyroscope ](/docs/sdks/capacitor/gyroscope/)
* [ Haptics ](/docs/sdks/capacitor/haptics/)
* [ Home Indicator ](/docs/sdks/capacitor/home-indicator/)
* [ In-App Browser ](/docs/sdks/capacitor/in-app-browser/)
* [ Install Referrer ](/docs/sdks/capacitor/install-referrer/)
* [ Intercom ](/docs/sdks/capacitor/intercom/)
* [ Intune ](/docs/sdks/capacitor/intune/)
* [ Keep Awake ](/docs/sdks/capacitor/keep-awake/)
* [ libSQL ](/docs/sdks/capacitor/libsql/)
* [ Light Sensor ](/docs/sdks/capacitor/light-sensor/)
* [ Live Update ](/docs/sdks/capacitor/live-update/)
* [ Localization ](/docs/sdks/capacitor/localization/)
* [ Mail Composer ](/docs/sdks/capacitor/mail-composer/)
* [ Managed Configurations ](/docs/sdks/capacitor/managed-configurations/)
* [ Maps Launcher ](/docs/sdks/capacitor/maps-launcher/)
* [ Media Session ](/docs/sdks/capacitor/media-session/)
* [ ML Kit ](/docs/sdks/capacitor/mlkit/)
* [ Navigation Bar ](/docs/sdks/capacitor/navigation-bar/)
* [ Network ](/docs/sdks/capacitor/network/)
* [ NFC ](/docs/sdks/capacitor/nfc/)
* [ Node.js ](/docs/sdks/capacitor/nodejs/)
* [ OAuth ](/docs/sdks/capacitor/oauth/)
* [ Passkeys ](/docs/sdks/capacitor/passkeys/)
* [ Password Autofill ](/docs/sdks/capacitor/password-autofill/)
* [ PDF Generator ](/docs/sdks/capacitor/pdf-generator/)
* [ PDF Viewer ](/docs/sdks/capacitor/pdf-viewer/)
* [ Pedometer ](/docs/sdks/capacitor/pedometer/)
* [ Permissions ](/docs/sdks/capacitor/permissions/)
* [ Phone Dialer ](/docs/sdks/capacitor/phone-dialer/)
* [ Photo Editor ](/docs/sdks/capacitor/photo-editor/)
* [ Photo Manipulator ](/docs/sdks/capacitor/photo-manipulator/)
* [ PixLive ](/docs/sdks/capacitor/pixlive/)
* [ PostHog ](/docs/sdks/capacitor/posthog/)
* [ Printer ](/docs/sdks/capacitor/printer/)
* [ Privacy Screen ](/docs/sdks/capacitor/privacy-screen/)
* [ Proximity Sensor ](/docs/sdks/capacitor/proximity-sensor/)
* [ Purchases ](/docs/sdks/capacitor/purchases/)
* [ RealtimeKit ](/docs/sdks/capacitor/realtimekit/)
* [ Root Detection ](/docs/sdks/capacitor/root-detection/)
* [ Screen Brightness ](/docs/sdks/capacitor/screen-brightness/)
* [ Screen Orientation ](/docs/sdks/capacitor/screen-orientation/)
* [ Screen Reader ](/docs/sdks/capacitor/screen-reader/)
* [ Screenshot ](/docs/sdks/capacitor/screenshot/)
* [ Secure Preferences ](/docs/sdks/capacitor/secure-preferences/)
* [ Settings Launcher ](/docs/sdks/capacitor/settings-launcher/)
* [ Shake ](/docs/sdks/capacitor/shake/)
* [ Silent Mode ](/docs/sdks/capacitor/silent-mode/)
* [ SIM ](/docs/sdks/capacitor/sim/)
* [ SMS Composer ](/docs/sdks/capacitor/sms-composer/)
* [ 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/)
* [ System WebView ](/docs/sdks/capacitor/system-webview/)
* [ Tauri ](/docs/sdks/capacitor/tauri/)
* [ Text Interaction ](/docs/sdks/capacitor/text-interaction/)
* [ Text Zoom ](/docs/sdks/capacitor/text-zoom/)
* [ Thermal State ](/docs/sdks/capacitor/thermal-state/)
* [ Toast ](/docs/sdks/capacitor/toast/)
* [ Torch ](/docs/sdks/capacitor/torch/)
* [ Vault ](/docs/sdks/capacitor/vault/)
* [ Volume ](/docs/sdks/capacitor/volume/)
* [ Wallet ](/docs/sdks/capacitor/wallet/)
* [ Wifi ](/docs/sdks/capacitor/wifi/)
* [ YouTube Player ](/docs/sdks/capacitor/youtube-player/)
* [ 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
`

## Share a build with testers[¶](#share-a-build-with-testers "Permanent link")

To give external testers a public link they can open without an account, share a succeeded build:

`[](#%5F%5Fcodelineno-8-1)npx @capawesome/cli apps:builds:share --description "Please test the new checkout flow"
`

Add `--json` to get the share `webUrl` and a `qrCodeUrl` you can embed in Slack or a pull request. See [Share a build](/docs/cloud/native-builds/share-a-build/).

## 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-9-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.

July 12, 2026 

Back to top

```json
{"@context": "https://schema.org", "@graph": [{"@type": "TechArticle", "@id": "https://capawesome.io/docs/cloud/cli/examples/#article", "headline": "CLI Examples", "name": "CLI Examples", "description": "Practical Capawesome Cloud CLI examples — build a debug APK, ship a Live Update, roll back, sign a bundle, and automate in CI.", "inLanguage": "en", "url": "https://capawesome.io/docs/cloud/cli/examples/", "mainEntityOfPage": "https://capawesome.io/docs/cloud/cli/examples/", "author": {"@type": "Organization", "name": "Capawesome", "url": "https://capawesome.io", "logo": {"@type": "ImageObject", "url": "https://capawesome.io/assets/images/logo.svg"}}, "publisher": {"@type": "Organization", "name": "Capawesome", "url": "https://capawesome.io", "logo": {"@type": "ImageObject", "url": "https://capawesome.io/assets/images/logo.svg"}}}]}
```
