✅ アプリの登録
あなたのアプリはCapgoにプロダクションチャンネルで登録されています
このプラグインのインストール手順とフルマークダウンガイドを含むセットアッププロンプトをコピーします。
The Capgo CLI provides an interactive onboarding that sets up live updates for your Capacitor app. You’ll:
推定時間: 10-20分 (インターネット速度とビルド時間に応じて変わります)
API キーとともにオンボーディングコマンドを実行する:
npx @capgo/cli@latest init [APIKEY]ようこそメッセージが表示されます:
Capgo onboarding 🛫CLIは、13ステップのインタラクティブなガイドを提供します:
セットアップフェーズ(ステップ1-6):
@capgo/capacitor-updater __CAPGO_KEEP_2__テストフェーズ (ステップ 7-12):
完了 (ステップ 13):
The CLI checks your development environment to ensure you have the necessary tools installed.
確認されるもの:
可能な結果:
✅ 両方の環境が見つかりました:
✅ 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?Yes を選択した場合:
(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 JavaScriptsetChannel() 後で __CAPGO_KEEP_0__ Web コンソールからチャンネルを設定するCapgoはCLIのバージョンに適合した @capgo/capacitor-updater plugin compatible with your Capacitor version.
❓ Automatic Install "@capgo/capacitor-updater" dependency in {appId}?バージョン互換性:
@capgo/capacitor-updater v5@capgo/capacitor-updater v6@capgo/capacitor-updater v7Instant updates option:
After installation, you’ll be asked:
❓ Do you want to set instant updates in {appId}? Read more: https://capgo.app/docs/live-updates/update-behavior/#applying-updates-immediatelyIf you select Yes:
autoUpdate: 'always' そして autoSplashscreen: true will be added to your configcapacitor.config.ts will be updated automaticallyIf you select 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エンドツーヨー暗号化は、更新のセキュリティ層を追加します。
🔐 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 - AndroidThe CLI will build your app and sync it with Capacitor.
❓ Automatic build {appId} with "npm run build"?次のことが起こります:
npx cap sync {platform}ビルドスクリプトが存在しない場合:
ビルドスクリプトを追加するか、スキップするかを尋ねられます。 package.json.
デバイスまたはエミュレータでアプリの初期バージョンをテストします。
❓ Run {appId} on {PLATFORM} device now to test the initial version?ビルドスクリプトが存在しない場合: はい:
(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 nextここで、Capgoの更新システムをテストするために、可視的な変更を実行してみましょう。
🎯 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?The CLI runs:
npx @capgo/cli@latest bundle uploadDelta 更新のプロンプト (即時適用モードが有効の場合):
💡 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)Success:
✅ 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 running即時アップデートの場合:
🔄 IMPORTANT: Background your app (swipe up/press home button) and then reopen it⏱️ The update should be downloaded and applied automatically標準アップデートの場合:
📱 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 updateログの監視:
❓ Monitor Capgo logs to verify the update worked?あなたが「はい」を選択すると あなたは、デバイスからアップデートプロセスを実行中のライブログを見ることができます。クリップボードにコピー
Welcome onboard ✈️!おめでとうございます!あなたはアプリのCapgoライブアップデートを成功させました。
オンボーディングを完了したあと、次のことが実行されます:
✅ アプリの登録
あなたのアプリはCapgoにプロダクションチャンネルで登録されています
✅ プラグインのインストール
Capacitorアップデートプラグインはインストールされています
✅ Code統合
アプリに統合 code が追加されました
✅ Update Tested
あなたは成功でデプロイし、ライブアップデートを受け取りました
次回のアップデートについては、以下の手順に従ってください
npm run buildnpx @capgo/cli@latest bundle upload --channel=productionさらにデプロイオプションについては、以下のページを参照してください ライブアップデートをデプロイする.
プロセスを中断してもいつでも再開できます:
npx @capgo/cli@latest init [APIKEY]次のようになります:
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を入力してください。
問題: ビルドスクリプトが package.json.
解決策: あなたの package.json:
{ "scripts": { "build": "your-build-command" }}問題: CLI は、code の自動インジェクションを実行できません。
解決策: code を手動でメインファイルに追加してください:
import { CapacitorUpdater } from '@capgo/capacitor-updater'
CapacitorUpdater.notifyAppReady()問題: Capacitor のバージョンが v5 未満です。
解決策: Capacitor を v5 またはそれ以上のバージョンにアップグレードしてください:
オンボーディングを完了しました。以下のトピックをご覧ください。
一度の設定チェックリスト
長期の安定性のために、チャンネル、CI、デルタアップロードを一度に設定してください。
デプロイ
Capgo ダッシュボードからアップデートをデプロイする方法を学びましょう。
アップデートの種類
OTAアップデートの種類のリファレンス: アプリケーションタイミング、遅延条件、バージョンブロッキング、配信
CI/CD統合
CI/CDを使用して自動的にアップデートのデプロイを実行
チャンネル
Capgoのリリースチャンネル機能名。Capgoのソリューションズマーケティングページ。短いUIラベルまたはナビゲーションアイテム。ソリューションズ/ホワイトラベル.astroページに表示
複数のアップデートストリームを管理するチャンネル
暗号化
アップデートをセキュリティで保護するエンドツーヘンド暗号化
アップデートの動作
トラブルシューティング用のヘルプ
「続けてください」オンボーディング ガイド CLI Onboarding Guide to plan dashboard and API operations, connect it with API オーバービュー API オーバービューの実装詳細について 導入 導入の実装詳細について API キー API キーの実装詳細について デバイス デバイスの実装詳細について、そして バンドル バンドルの実装詳細について。