__CAPGO_KEEP_0__
채널을 사용하여 다양한 릴리스 트랙을 관리하고 특정 사용자에게 업데이트를 대상으로하는 방법을 알아보세요.
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사하세요.
Capgo의 Live Updates 기능을 사용하여 앱의 자바스크립트 번들을 실시간으로远程로 업데이트할 수 있습니다. 앱 스토어 리뷰 프로세스를 거치지 않고 사용자에게 직접 JS 업데이트를 푸시하여 버그를 즉시 수정하고 새로운 기능을 배포할 수 있습니다.
Capgo의 Live Update 시스템은 두 가지 주요 구성 요소를 포함합니다:
The Capgo SDK, which you install in your app. The SDK checks for available updates and downloads them in the background.
__CAPGO_KEEP_2__는 사용 가능한 업데이트를 확인하고 배경에서 다운로드합니다. Production, Staging채널, 사용자 그룹을 대상으로 업데이트를 관리할 수 있습니다. 채널을 사용하여 다양한 릴리스 트랙을 관리할 수 있습니다. Dev.
When you upload a new JS bundle to Capgo and assign it to a channel, the Capgo SDK in apps configured for that channel will detect the update and download it. The next time the app restarts, the new bundle will be loaded.
시작하기
시작하기 Capgo Quickstart to set up your app in Capgo and install the Capgo SDK.
code code __CAPGO_KEEP_1__ __CAPGO_KEEP_2__를 설치하기 위해 code Quickstart를 완료하십시오. CapacitorUpdater.notifyAppReady() Capgo Capgo SDK __CAPGO_KEEP_2__를 설치하기 위해 Capgo Quickstart를 완료하십시오.
Capgo에 JS 번들을 빌드하고 업로드하세요.
npm run buildnpx @capgo/cli@latest bundle upload --channel=production업데이트가 다운로드될 때까지 앱을 열고 기다리세요. 상태를 확인하려면 다음 명령어를 사용하세요.
npx @capgo/cli@latest app debug업데이트가 다운로드되면 앱을 닫고 다시 열어 새로운 번들을 로드하세요.
See the 실시간 업데이트 배포 에 대한 자세한 내용은
The Capgo CLI is a powerful tool that allows developers to interact with Capgo’s services from their own CI/CD pipelines. With the CLI, you have granular control over when builds are produced and deployed, enabling you to integrate Capgo into your existing enterprise workflows.
Capgo CLI는 개발자와 팀에게 더 많은 제어와 유연성을 제공하는 라이브 업데이트 워크플로우에서 필요합니다. CLI를 CI/CD pipeline에 사용하여:
To use the Capgo CLI, you’ll need to authenticate with your API key. You can generate an API key in your Capgo account settings.
To log in and securely store your API key, run:
npx @capgo/cli@latest login [API_KEY]이 명령어는 로그인 후 각 명령어에 API 키를 제공할 필요가 없습니다. 따라서 미래에 사용할 수 있도록 저장됩니다.
CLI 도구에 익숙한 경우 Capgo의 CLI에 대해 몇 가지 중요한 점을 알아야 합니다.
Capgo은 개발 및 CI/CD 용도로 CLI을 단일로 사용하며, Capgo은 라이브 업데이트 기능 집합에만 집중되어 있습니다.
Capgo의 CLI은 별도의 설치 단계가 필요하지 않습니다. Capgo 패키지와 함께 패키징되어 Capgo CLI을 직접 실행할 수 있습니다. @capgo/cli __CAPGO_KEEP_0__의 __CAPGO_KEEP_1__은 라이브 업데이트 워크플로우를 위해 특별히 설계되었으므로, 일반적인 목적 __CAPGO_KEEP_2__ 도구에서 발견되는 기능이나 명령어를 포함하지 않을 수 있습니다. npx.
Capgo’s CLI is designed specifically for the live update workflow, so it may not include some features or commands found in more general-purpose CLI tools.