⚠️ Setup Credentials First
Required before building: You must configure your build credentials (certificates for iOS, keystores for Android).
Commencer avec Capgo Cloud Construction and Créer your first iOS or Android Natif Construction 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).
Configuration Construction Credentials
Before you can Construction, you need to Enregistrer 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 Construction
First, ensure your Application 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 Clé API (if not already configured):
npx @capgo/cli@latest loginOr set the environment variable:
export CAPGO_TOKEN=your_api_key_hereRun Your First Construction
Démarrer with an Android Débogage Construction (fastest to Test):
npx @capgo/cli@latest build com.example.app \ --platform android \ --build-mode debugYou’ll see real-time Journaux as your Construction progresses:
✔ Creating build job...✔ Uploading project (15.2 MB)...✔ Build started
📝 Build logs:→ Installing dependencies...→ Running Gradle build...→ Signing APK...✔ Build succeeded in 3m 42sVérifier Construction Status
The CLI will automatically poll and display the Construction status. Once Terminé, you’ll see:
When you run the Construction Commande, 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, Créer a Production Construction:
npx @capgo/cli@latest build com.example.app \ --platform android \ --build-mode releaseYou’ll need to configure signing credentials first. See Android Construction Configuration.
npx @capgo/cli@latest build com.example.app \ --platform ios \ --build-mode releaseiOS builds require signing certificates and provisioning profiles. See iOS Construction 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:
Construction time is measured from Démarrer to completion:
You only pay for actual Construction time used. No hidden fees.
Ajouter 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 debugConstruction for both platforms simultaneously:
npx @capgo/cli@latest build com.example.app \ --platform both \ --build-mode releaseNow that you’ve created your first Construction: