✅ 앱 등록됨
귀하의 앱은 프로덕션 채널을 통해 Capgo에 등록되어 있습니다.
Capgo CLI은 Capacitor 앱에 대한 실시간 업데이트를 설정하는 대화형 온보딩을 제공합니다. 당신은:
예상 시간: 10~20분(인터넷 속도 및 구축 시간에 따라 다름)
API 키를 사용하여 온보딩 명령을 실행합니다.
npx @capgo/cli@latest init [APIKEY]환영 메시지가 표시됩니다.
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 ✅")프로덕션 채널이 생성되고 기본값으로 설정됩니다. 이는 대부분의 사용자에게 권장되는 옵션입니다.
아니요를 선택하는 경우:
If you change your mind, run it for yourself with: "npm @capgo/cli@latest channel add production {appId} --default"나중에 채널을 수동으로 만들고 구성해야 합니다. 또는 다음을 수행할 수 있습니다.
capacitor.config.ts 파일에 채널을 설정하세요.setChannel() 메서드를 사용하여 채널을 동적으로 설정합니다.CLI은 Capacitor 버전과 호환되는 @capgo/capacitor-updater 플러그인을 설치합니다.
❓ Automatic Install "@capgo/capacitor-updater" dependency in {appId}?버전 호환성:
@capgo/capacitor-updater v5를 설치합니다.@capgo/capacitor-updater v6을 설치합니다.@capgo/capacitor-updater v7을 설치합니다.즉시 업데이트 옵션:
설치 후 다음과 같은 질문이 표시됩니다.
❓ Do you want to set instant updates in {appId}? Read more: https://capgo.app/docs/live-updates/update-behavior/#applying-updates-immediately예를 선택한 경우:
directUpdate: 'always' 및 autoSplashscreen: true이 구성에 추가됩니다.capacitor.config.ts이 자동으로 업데이트됩니다.아니요를 선택하는 경우:
capacitor.config.ts을 수정하여 나중에 언제든지 즉시 업데이트를 활성화할 수 있습니다.CLI는 필수 코드를 기본 애플리케이션 파일에 자동으로 삽입합니다.
❓ 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 - AndroidCLI는 앱을 빌드하고 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?업데이트된 App Bundle을 Capgo에 업로드하세요.
❓ Upload the updated {appId} bundle (v{version}) to Capgo?The CLI runs:
npx @capgo/cli@latest bundle upload델타 업데이트 프롬프트(직접 업데이트가 활성화된 경우):
💡 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)성공:
✅ 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 업데이트 프로그램 플러그인이 설치 및 구성되었습니다.
✅ 코드 통합
통합 코드가 앱에 추가되었습니다.
✅ 업데이트 테스트됨
성공적으로 배포하고 실시간 업데이트를 받았습니다.
후속 업데이트의 경우 다음을 사용하십시오.
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가 이미 등록되어 있습니다.
해결책: 제안된 대안 중 하나를 선택하거나 역도메인 표기법으로 맞춤 앱 ID를 입력하세요.
문제: package.json에 빌드 스크립트가 없습니다.
해결책: package.json에 빌드 스크립트를 추가하세요.
{ "scripts": { "build": "your-build-command" }}문제: CLI는 통합 코드를 자동으로 삽입할 수 없습니다.
해결책: 기본 파일에 코드를 수동으로 추가하세요.
import { CapacitorUpdater } from '@capgo/capacitor-updater'
CapacitorUpdater.notifyAppReady()문제: Capacitor 버전이 v5보다 낮습니다.
해결책: Capacitor을 v5 이상으로 업그레이드하세요.
이제 온보딩을 완료했으므로 다음 주제를 살펴보세요.
업데이트 배포
Capgo 대시보드에서 업데이트를 배포하는 방법을 알아보세요.
업데이트 유형
모든 OTA 업데이트 유형 참조: 적용 시기, 지연 조건, 버전 차단, 전달
CI/CD 통합
CI/CD를 사용하여 업데이트 배포 자동화
Channels
채널을 통해 여러 업데이트 스트림 관리
Encryption
엔드투엔드 암호화로 업데이트를 보호하세요
업데이트 동작
업데이트 적용 시기 및 방법 사용자 정의(직접, 델타 등)
온보딩 중에 문제가 발생하는 경우: