â ď¸ Setup Credentials First
Required before building: You must configure your build credentials (certificates for iOS, keystores for Android).
Copy a setup prompt with the install steps and the full markdown guide for this plugin.
Get started with Capgo Cloud Build and create your first iOS or Android native build in minutes.
Before you begin, ensure you have:
bunx @capgo/cli@latest app add if not)â ď¸ Setup Credentials First
Required before building: You must configure your build credentials (certificates for iOS, keystores for Android).
Setup Build Credentials
Before you can build, you need to save your credentials locally:
For iOS:
bunx @capgo/cli@latest build credentials save \ --platform ios \ --certificate ./cert.p12 \ --p12-password "password" \ --provisioning-profile ./profile.mobileprovision \ --apple-key ./AuthKey.p8 \ --apple-key-id "KEY123" \ --apple-issuer-id "issuer-uuid" \ --apple-team-id "team-id"For Android:
bunx @capgo/cli@latest build credentials save \ --platform android \ --keystore ./release.keystore \ --keystore-alias "my-key" \ --keystore-key-password "key-pass" \ --keystore-store-password "store-pass"See the full credentials guide for details.
Verify Local Build
First, ensure your app builds locally without errors:
# Build your web assetsbun run build
# Sync with Capacitorbunx cap sync
# Test local build (optional but recommended)bunx cap open ios # For iOSbunx cap open android # For AndroidAuthenticate with Capgo
Set your Capgo API key (if not already configured):
bunx @capgo/cli@latest loginOr set the environment variable:
export CAPGO_TOKEN=your_api_key_hereRun Your First Build
Start with an Android debug build (fastest to test):
bunx @capgo/cli@latest build com.example.app \ --platform android \ --build-mode debugYouâll see real-time logs as your build progresses:
â Creating build job...â Uploading project (15.2 MB)...â Build started
đ Build logs:â Installing dependencies...â Running Gradle build...â Signing APK...â Build succeeded in 3m 42sCheck Build Status
The CLI will automatically poll and display the build status. Once complete, youâll see:
When you run the build command, hereâs what happens:
flowchart LR
A[Your Machine] -->|1. Zip Project| B[Local Temp]
B -->|2. Upload| C[Capgo Cloud]
C -->|3. Build| D[Mac Mini Silicon M4 Build Server]
D -->|4. Logs Stream| A
D -->|5. Cleanup| E[Auto Delete] node_modules and dotfiles)Build execution runs on dedicated Mac Mini Silicon M4 machines:
The build image supports Xcode 26.2, Android Studio 2025, and .NET 9/.NET 10 SDK workloads for native build pipelines.
Once youâve verified the process works, create a production build:
bunx @capgo/cli@latest build com.example.app \ --platform android \ --build-mode releaseYouâll need to configure signing credentials first. See Android Build Configuration.
bunx @capgo/cli@latest build com.example.app \ --platform ios \ --build-mode releaseiOS builds require signing certificates and provisioning profiles. See iOS Build Configuration.
Capgo Build only uploads the minimum files needed to compile your native app. Your full source code never leaves your machine.
| Included | Description |
|---|---|
ios/ or android/ | The native platform folder youâre building |
package.json, package-lock.json | Dependency manifest |
capacitor.config.* | Capacitor configuration |
resources/ | App icons, splash screens |
| Native plugin code | Only the ios/ or android/ subfolder of each Capacitor plugin |
| Excluded | Why |
|---|---|
node_modules/ (most of it) | Only native plugin code is included, not JS dependencies |
src/ | Your web source code stays local |
dist/, www/, build/ (root level) | Already synced into the native folder via cap sync |
.git/ | Version control history |
.gradle/, .idea/, .swiftpm/ | Build caches and IDE settings |
.env, secrets | Never uploaded |
Before running bunx @capgo/cli@latest build:
bun run build (or your frameworkâs build command)bunx cap sync to copy web assets into the native projectpackage.jsonBuild time is measured from start to completion:
You only pay for actual build time used. No hidden fees.
Trigger Capgo Build automatically from your GitHub Actions workflow â on push, on tag, or with a manual button click. See the dedicated GitHub Actions guide for complete workflow examples covering manual triggers, tag-based releases, and continuous debug builds.
Test builds locally before committing:
# Quick debug build for testingbun run build && bunx cap syncbunx @capgo/cli@latest build com.example.app \ --platform android \ --build-mode debugBuild for both platforms by running two commands:
# iOS buildbunx @capgo/cli@latest build com.example.app \ --platform ios \ --build-mode release
# Android buildbunx @capgo/cli@latest build com.example.app \ --platform android \ --build-mode releaseIn CI/CD, you can run these in parallel jobs for faster builds.
Now that youâve created your first build: