✅ アプリ登録
あなたのアプリは Capgo にプロダクションチャンネルで登録されています。
このプラグインのインストール手順とフルマークダウンガイドを含む設定プロンプトをコピーする
CapgoのCLIは、Capacitorアプリのライブアップデートの設定に役立つインタラクティブなオンボーディングを提供します。
Estimated time: 10-20 minutes (varies based on your internet speed and build time)
Run the onboarding command with your API key:
npx @capgo/cli@latest init [APIKEY]You’ll see the welcome message:
Capgo onboarding 🛫CLIは、13ステップのインタラクティブなガイドを提供します:
セットアップフェーズ(ステップ1-6)
@capgo/capacitor-updater プラグインテストフェーズ(ステップ7-12)
完了 (ステップ 13):
CLI は開発環境を確認し、必要なツールがインストールされていることを確認します。
確認されるもの:
可能な結果:
✅ 両方の環境が見つかりました:
✅ Xcode detected - iOS development ready✅ Android SDK detected - Android development ready⚠️ 環境が見つかりませんでした:
⚠️ 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/studio質問されるかもしれません:
CLIはCapgoにログインし、アプリをアカウントに追加します。
(spinner) Running: npm @capgo/cli@latest login ***Login Done ✅
❓ Add {appId} in Capgo?アプリ ID がすでに使用されている場合:
CLIは代替案を提示します。
❌ 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?代替案を選択するか、カスタムのアプリ ID を入力できます。
チャンネルは、異なるアップデート ストリームを管理するためにアプリを使用します。
❓ Create default channel production for {appId} in Capgo?はいを選択した場合:
(spinner) Running: npm @capgo/cli@latest channel add production {appId} --defaultChannel add Done ✅ (or "Channel already added ✅")生産チャネルが作成され、デフォルトに設定されます。このオプションは、ほとんどのユーザーにとって推奨されるオプションです。
No を選択した場合:
If you change your mind, run it for yourself with: "npm @capgo/cli@latest channel add production {appId} --default"後でチャネルを作成して設定する必要があります。代わりに、次のことができます:
capacitor.config.ts JavaScript の方法で、ダイナミックにチャネルを設定するsetChannel() ステップ 4: アップデート プラグインをインストールするCLI はアップデート プラグインをインストールします @capgo/capacitor-updater Capacitor のバージョンと互換性があります。
❓ Automatic Install "@capgo/capacitor-updater" dependency in {appId}?バージョン互換性:
@capgo/capacitor-updater __CAPGO_KEEP_0__ 6@capgo/capacitor-updater v7@capgo/capacitor-updater __CAPGO_KEEP_0__ 6即時更新オプション:
インストール後、次の質問に答える必要があります。
❓ Do you want to set instant updates in {appId}? Read more: https://capgo.app/docs/live-updates/update-behavior/#applying-updates-immediatelyYesを選択した場合:
autoUpdate: 'always' そして autoSplashscreen: true あなたの設定に追加されます。capacitor.config.ts 自動的に更新されます。Noを選択した場合:
capacitor.config.tsCLIは自動的に必要なcodeをメインのアプリケーションファイルにインジェクトします。
❓ Automatic Add "CapacitorUpdater.notifyAppReady()" code and import in {appId}?追加されるもの
import { CapacitorUpdater } from '@capgo/capacitor-updater'
CapacitorUpdater.notifyAppReady()プロジェクトタイプの検出
plugins/capacitorUpdater.client.ts__CAPGO_KEEP_0__のエンドツーヘンド暗号化は、更新のセキュリティ層を追加します。
🔐 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?暗号化を有効にすると、CLIは次のことを行います:
オンボード中にテストするプラットフォームを選択する
📱 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 - AndroidCLIはアプリをビルドし、Capacitorと同期します。
❓ Automatic build {appId} with "npm run build"?何が起こるか:
npx cap sync {platform}ビルドスクリプトが存在しない場合:
__CAPGO_KEEP_0__のビルドをスキップするか、ビルドスクリプトをプロジェクトに追加するかを尋ねられます。 package.json.
アプリの初期バージョンをデバイスまたはシミュレータでテストしてください。
❓ Run {appId} on {PLATFORM} device now to test the initial version?あなたが選択した場合 Yes:
(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 nextCapgoのアップデートシステムをテストするために、可視的な変更を実行してください。
🎯 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 myselfオートモード: CLIは自動的にファイルを変更して、テストバナーを表示可能にするか、変更します。
マニュアルモード: 自分で変更を実行します(例えば、テキストや色を変更したり、要素を追加したり)。
バージョンハンドリング:
❓ How do you want to handle the version for this update? Options: - Auto: Bump patch version ({currentVersion} → {nextVersion}) - Manual: I'll provide the version number変更を含めてビルド:
❓ Build {appId} with changes before uploading?Capgoにアップデートしたアプリケーションバンドルをアップロードしてください。
❓ Upload the updated {appId} bundle (v{version}) to Capgo?CLIが実行中です。
npx @capgo/cli@latest bundle uploadDelta updates prompt (if an instant apply mode is enabled):
💡 Instant updates are enabled in your config Delta updates send only changed files instead of the full bundle
❓ Enable delta updates for this upload? (Recommended with instant updates)成功:
✅ Update v{version} uploaded successfully!🎉 Your updated bundle is now available on Capgo実際にアップデートを見るまでの時間!
🧪 Time to test the Capgo update system!📱 Go to your device where the app is runningFor instant updates:
🔄 IMPORTANT: Background your app (swipe up/press home button) and then reopen it⏱️ The update should be downloaded and applied automaticallyFor 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 updateMonitor logs:
❓ Monitor Capgo logs to verify the update worked?If you select Yes, you’ll see live logs from your device showing the update process.
Welcome onboard ✈️!成功しました!あなたのアプリに Capgo ライブ更新が正常に設定されました。
オンボーディングを完了したあと、次のことが実行されます。
✅ アプリ登録
あなたのアプリは Capgo にプロダクションチャンネルで登録されています。
✅ プラグインインストール
Capacitor アップデートプラグインはインストールされ、設定されています。
✅ Code統合
あなたのアプリに code統合が追加されています。
✅ アップデートテスト
あなたはライブアップデートを正常にデプロイし、受信しました。
以降の更新については、以下を使用してください:
npm run buildnpx @capgo/cli@latest bundle upload --channel=productionその他のデプロイオプションについては、以下を参照してください。 ライブアップデートをデプロイする.
オンボーディングプロセスから退出した場合、いつでも再開できます。
npx @capgo/cli@latest init [APIKEY]You’ll see:
You have already got to the step {stepNumber}/13 in the previous session❓ Would you like to continue from where you left off?問題: XcodeやAndroid SDKのいずれも検出されませんでした。
解決策:
問題: あなたのアプリIDはすでに登録されています。
解決策: 指定された代替案件の1つを選択するか、逆ドメイン記法でカスタムアプリIDを入力してください。
問題: No build script found in package.json.
Solution: Add a build script to your package.json:
{ "scripts": { "build": "your-build-command" }}__CAPGO_KEEP_0__は、__CAPGO_KEEP_1__の統合を自動的に挿入できません。 CLIはcodeの統合を自動的に挿入できません。
解決策: 主ファイルに code を手動で追加してください:
import { CapacitorUpdater } from '@capgo/capacitor-updater'
CapacitorUpdater.notifyAppReady()問題: Capacitor のバージョンが v5 未満です。
解決策: Capacitor を v5 またはそれ以上にアップグレードしてください。
オンボーディングを完了した後は、これらのトピックを調べることができます:
デプロイの更新
Capgo ダッシュボードから更新をデプロイする方法を学びます
更新のタイプ
OTAの更新の種類のすべてのリファレンス: アプリケーションのタイミング、遅延条件、バージョンのブロッキング、配信
CI/CDの統合
更新のデプロイをCI/CDで自動化する
チャンネル
複数の更新のストリームをチャンネルで管理する
暗号化
__CAPGO_KEEP_0__をエンドツーエンド暗号化で保護
__CAPGO_KEEP_1__
__CAPGO_KEEP_2__をカスタマイズして、更新が適用されるタイミングと方法 (直接、デルタなど) を指定できます
__CAPGO_KEEP_5__の場合:
__CAPGO_KEEP_0__ を使用している場合 CLI Onboarding ガイド API をダッシュボードと API の運用に計画する場合、API と接続してください。 API の実装詳細については、API オーバービューを参照してください。 API オーバービューの実装詳細については、API オーバービューを参照してください。 導入 導入の実装詳細については、導入を参照してください。 API キー API キーの実装詳細について デバイス __CAPGO_KEEP_0__ キーの実装詳細についてデバイス、 バンドル __CAPGO_KEEP_0__ キーの実装詳細についてバンドル。