⚠️ Setup Credentials First
Required before building: You must configure your build credentials (certificates for iOS, keystores for Android).
Ce contenu n'est pas encore disponible dans votre langue.
Get started with Capgo Cloud Build and create your first iOS or Android native build in minutes.
Before you begin, ensure you have:
npx @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:
npx @capgo/cli 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:
npx @capgo/cli 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 assetsnpm run build
# Sync with Capacitornpx cap sync
# Test local build (optional but recommended)npx cap open ios # For iOSnpx cap open android # For AndroidAuthenticate with Capgo
Set your Capgo API key (if not already configured):
npx @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):
npx @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[Build Server]
D -->|4. Logs Stream| A
D -->|5. Cleanup| E[Auto Delete] node_modules and dotfiles)Once you’ve verified the process works, create a production build:
npx @capgo/cli@latest build com.example.app \ --platform android \ --build-mode releaseYou’ll need to configure signing credentials first. See Android Build Configuration.
npx @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 npx @capgo/cli build:
npm run build (or your framework’s build command)npx 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.
Add to your GitHub Actions workflow:
- name: Build native app env: CAPGO_TOKEN: ${{ secrets.CAPGO_TOKEN }} run: | npm run build npx cap sync npx @capgo/cli@latest build ${{ secrets.APP_ID }} \ --platform both \ --build-mode releaseTest builds locally before committing:
# Quick debug build for testingnpm run build && npx cap syncnpx @capgo/cli@latest build com.example.app \ --platform android \ --build-mode debugBuild for both platforms by running two commands:
# iOS buildnpx @capgo/cli@latest build com.example.app \ --platform ios \ --build-mode release
# Android buildnpx @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: