⚠️ Setup Credentials First
Required before building: You must configure your build credentials (certificates for iOS, keystores for Android).
이 콘텐츠는 아직 귀하의 언어로 제공되지 않습니다.
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:
graph 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.
Important: Capgo Cloud Build only builds the native parts of your app (iOS and Android native code).
You are responsible for:
npm run build)npx cap sync before the buildpackage.jsonWe handle:
Build 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 simultaneously:
npx @capgo/cli@latest build com.example.app \ --platform both \ --build-mode releaseNow that you’ve created your first build: