✅ App registriert
Ihre App ist in Capgo mit einem Produktionskanal registriert
Die Capgo CLI bietet ein interaktives Onboarding, das Live-Updates für Ihre Capacitor-App einrichtet. Sie werden:
Geschätzte Zeit: 10-20 Minuten (variiert je nach Internetgeschwindigkeit und Build-Zeit)
Führen Sie den Onboarding-Befehl mit Ihrem API-Schlüssel aus:
npx @capgo/cli@latest init [APIKEY]Sie sehen die Willkommensnachricht:
Capgo onboarding 🛫Die CLI führt Sie durch 13 interaktive Schritte:
Setup-Phase (Schritte 1-6):
@capgo/capacitor-updater PluginTestphase (Schritte 7-12):
Abschluss (Schritt 13):
Die CLI überprüft Ihre Entwicklungsumgebung, um sicherzustellen, dass Sie die erforderlichen Tools installiert haben.
Was wird überprüft:
Mögliche Ergebnisse:
✅ Beide Umgebungen gefunden:
✅ Xcode detected - iOS development ready✅ Android SDK detected - Android development ready⚠️ Keine Umgebung gefunden:
⚠️ Xcode not found⚠️ Android SDK not found❌ No development environment detected
📱 To develop mobile apps with Capacitor, you need: • For iOS: Xcode (macOS only) - https://developer.apple.com/xcode/ • For Android: Android Studio - https://developer.android.com/studioDie CLI meldet Sie bei Capgo an und fügt Ihre App zu Ihrem Konto hinzu.
(spinner) Running: npm @capgo/cli@latest login ***Login Done ✅
❓ Add {appId} in Capgo?Wenn Ihre App-ID bereits vergeben ist:
Die CLI schlägt Alternativen vor:
❌ App ID "com.example.app" is already taken💡 Here are some suggestions: 1. com.example.app2 2. com.example.app3 3. com.example.app.new 4. com.example.app.app
❓ What would you like to do?Sie können einen Vorschlag wählen oder eine benutzerdefinierte App-ID eingeben.
Kanäle ermöglichen es Ihnen, verschiedene Update-Streams für Ihre App zu verwalten.
❓ Create default channel production for {appId} in Capgo?Wenn Sie Ja wählen:
(spinner) Running: npm @capgo/cli@latest channel add production {appId} --defaultChannel add Done ✅ (or "Channel already added ✅")Ein Produktionskanal wird erstellt und als Standard festgelegt. Dies ist die empfohlene Option für die meisten Benutzer.
Wenn Sie Nein wählen:
If you change your mind, run it for yourself with: "npm @capgo/cli@latest channel add production {appId} --default"Sie müssen Kanäle später manuell erstellen und konfigurieren. Alternativ können Sie:
capacitor.config.ts Datei festlegensetChannel() Methode verwenden, um den Kanal dynamisch festzulegenDie CLI installiert das @capgo/capacitor-updater Plugin, das mit Ihrer Capacitor-Version kompatibel ist.
❓ Automatic Install "@capgo/capacitor-updater" dependency in {appId}?Versionskompatibilität:
@capgo/capacitor-updater v5@capgo/capacitor-updater v6@capgo/capacitor-updater v7Sofortige Updates-Option:
Nach der Installation werden Sie gefragt:
❓ Do you want to set instant updates in {appId}? Read more: https://capgo.app/docs/live-updates/update-behavior/#applying-updates-immediatelyWenn Sie Ja wählen:
directUpdate: 'always' und autoSplashscreen: true werden zu Ihrer Konfiguration hinzugefügtcapacitor.config.ts wird automatisch aktualisiertWenn Sie Nein wählen:
capacitor.config.ts ändernDie CLI fügt automatisch den erforderlichen Code in Ihre Hauptanwendungsdatei ein.
❓ Automatic Add "CapacitorUpdater.notifyAppReady()" code and import in {appId}?Was hinzugefügt wird:
import { CapacitorUpdater } from '@capgo/capacitor-updater'
CapacitorUpdater.notifyAppReady()Projekttypenerkennung:
plugins/capacitorUpdater.client.tsEnd-to-End-Verschlüsselung fügt eine zusätzliche Sicherheitsebene für Ihre Updates hinzu.
🔐 End-to-end encryption ✅ Use this for: Banking, healthcare, or apps with legal encryption requirements ⚠️ Note: Makes debugging harder - skip if you don't need it
❓ Enable end-to-end encryption for {appId} updates?Wenn Sie Verschlüsselung aktivieren, wird die CLI:
Wählen Sie aus, mit welcher Plattform Sie während des Onboardings testen möchten.
📱 Platform selection for onboarding This is just for testing during onboarding - your app will work on all platforms
❓ Which platform do you want to test with during this onboarding? Options: - iOS - AndroidDie CLI erstellt Ihre App und synchronisiert sie mit Capacitor.
❓ Automatic build {appId} with "npm run build"?Was passiert:
npx cap sync {platform} ausWenn das Build-Skript fehlt:
Sie werden gefragt, ob Sie den Build überspringen oder ein Build-Skript zu Ihrer package.json hinzufügen möchten.
Testen Sie die Anfangsversion Ihrer App auf einem Gerät oder Simulator.
❓ Run {appId} on {PLATFORM} device now to test the initial version?Wenn Sie Ja wählen:
(spinner) Running: npx cap run {platform}(device picker appears)App started ✅📱 Your app should now be running on your {platform} device with Capgo integrated🔄 This is your baseline version - we'll create an update nextJetzt ist es Zeit, das Update-System von Capgo zu testen, indem Sie eine sichtbare Änderung vornehmen.
🎯 Now let's test Capgo by making a visible change and deploying an update!
❓ How would you like to test the update? Options: - Auto: Let Capgo CLI make a visible change for you - Manual: I'll make changes myselfAuto-Modus: Die CLI ändert automatisch Ihre Dateien, um ein sichtbares Test-Banner oder eine Änderung hinzuzufügen.
Manueller Modus: Sie nehmen Ihre eigenen Änderungen vor (z.B. Text ändern, Farben oder Elemente hinzufügen).
Versionsverwaltung:
❓ How do you want to handle the version for this update? Options: - Auto: Bump patch version ({currentVersion} → {nextVersion}) - Manual: I'll provide the version numberMit Änderungen erstellen:
❓ Build {appId} with changes before uploading?Laden Sie Ihr aktualisiertes App-Bundle zu Capgo hoch.
❓ Upload the updated {appId} bundle (v{version}) to Capgo?Die CLI führt aus:
npx @capgo/cli@latest bundle uploadDelta-Updates-Eingabeaufforderung (wenn Direct Update aktiviert ist):
💡 Direct Update (instant updates) is enabled in your config Delta updates send only changed files instead of the full bundle
❓ Enable delta updates for this upload? (Recommended with Direct Update)Erfolg:
✅ Update v{version} uploaded successfully!🎉 Your updated bundle is now available on CapgoZeit, das Update in Aktion zu sehen!
🧪 Time to test the Capgo update system!📱 Go to your device where the app is runningFür sofortige Updates:
🔄 IMPORTANT: Background your app (swipe up/press home button) and then reopen it⏱️ The update should be downloaded and applied automaticallyFür Standard-Updates:
📱 With standard updates, you will need to: 1. Background the app (swipe up/press home button) to start download 2. Wait a few seconds for download to complete 3. Background and foreground again to see the updateProtokolle überwachen:
❓ Monitor Capgo logs to verify the update worked?Wenn Sie Ja wählen, sehen Sie Live-Protokolle von Ihrem Gerät, die den Update-Prozess zeigen.
Welcome onboard ✈️!Herzlichen Glückwunsch! Sie haben erfolgreich Capgo Live-Updates für Ihre App eingerichtet.
Nach Abschluss des Onboardings haben Sie:
✅ App registriert
Ihre App ist in Capgo mit einem Produktionskanal registriert
✅ Plugin installiert
Das Capacitor Updater Plugin ist installiert und konfiguriert
✅ Code integriert
Integrationscode ist zu Ihrer App hinzugefügt
✅ Update getestet
Sie haben erfolgreich ein Live-Update bereitgestellt und empfangen
Für spätere Updates verwenden Sie:
npm run buildnpx @capgo/cli@latest bundle upload --channel=productionWeitere Bereitstellungsoptionen finden Sie unter Live-Update bereitstellen.
Wenn Sie den Onboarding-Prozess beenden, können Sie jederzeit fortfahren:
npx @capgo/cli@latest init [APIKEY]Sie sehen:
You have already got to the step {stepNumber}/13 in the previous session❓ Would you like to continue from where you left off?Problem: Weder Xcode noch Android SDK wird erkannt.
Lösung:
Problem: Ihre App-ID ist bereits registriert.
Lösung: Wählen Sie eine der vorgeschlagenen Alternativen oder geben Sie eine benutzerdefinierte App-ID in Reverse-Domain-Notation ein.
Problem: Kein Build-Skript in package.json gefunden.
Lösung: Fügen Sie ein Build-Skript zu Ihrer package.json hinzu:
{ "scripts": { "build": "your-build-command" }}Problem: Die CLI kann den Integrationscode nicht automatisch einfügen.
Lösung: Fügen Sie den Code manuell zu Ihrer Hauptdatei hinzu:
import { CapacitorUpdater } from '@capgo/capacitor-updater'
CapacitorUpdater.notifyAppReady()Problem: Ihre Capacitor-Version ist unter v5.
Lösung: Aktualisieren Sie Capacitor auf v5 oder höher:
Nachdem Sie das Onboarding abgeschlossen haben, erkunden Sie diese Themen:
Updates bereitstellen
Erfahren Sie, wie Sie Updates vom Capgo-Dashboard bereitstellen
Update-Typen
Referenz aller OTA-Update-Typen: Anwendungszeitpunkt, Verzögerungsbedingungen, Versionsblockierung und Bereitstellung
CI/CD-Integration
Automatisieren Sie Ihre Update-Bereitstellungen mit CI/CD
Kanäle
Verwalten Sie mehrere Update-Streams mit Kanälen
Verschlüsselung
Sichern Sie Ihre Updates mit End-to-End-Verschlüsselung
Update-Verhalten
Passen Sie an, wann und wie Updates angewendet werden (direct, delta, etc.)
Wenn Sie während des Onboardings auf Probleme stoßen: