@capgo/cli 8.109.1 → 8.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/dist/index.js +813 -809
- package/dist/notify-app-ready-worker.js +1 -1
- package/dist/onboarding-worker.js +1 -1
- package/dist/package.json +4 -3
- package/dist/src/app/prewarm.d.ts +25 -0
- package/dist/src/sdk.js +1 -1
- package/dist/updater-installed-worker.js +1 -1
- package/package.json +4 -3
- package/skills/usage/SKILL.md +1 -0
package/README.md
CHANGED
|
@@ -151,6 +151,7 @@ Capgo continues to load the root config while writing only the selected source.
|
|
|
151
151
|
- [List](#app-list)
|
|
152
152
|
- [Todo](#app-todo)
|
|
153
153
|
- [Debug](#app-debug)
|
|
154
|
+
- [Prewarm](#app-prewarm)
|
|
154
155
|
- [Setting](#app-setting)
|
|
155
156
|
- [Set](#app-set)
|
|
156
157
|
- 📢 [Channel](#channel)
|
|
@@ -863,6 +864,30 @@ npx @capgo/cli@latest app debug com.example.app --device DEVICE_ID
|
|
|
863
864
|
| **--api-host** | <code>string</code> | Custom Capgo API URL for self-hosting or testing, e.g. https://api.example.com or http://127.0.0.1:8787 (env: CAPGO_API_HOST) |
|
|
864
865
|
| **--files-host** | <code>string</code> | Custom Capgo files API URL when it differs from --api-host (env: CAPGO_FILES_HOST) |
|
|
865
866
|
|
|
867
|
+
### <a id="app-prewarm"></a> 🔹 **Prewarm**
|
|
868
|
+
|
|
869
|
+
**Alias:** `warm`
|
|
870
|
+
|
|
871
|
+
```bash
|
|
872
|
+
npx @capgo/cli@latest app prewarm
|
|
873
|
+
```
|
|
874
|
+
|
|
875
|
+
🔥 Load your app's live update state into every Capgo plugin region now.
|
|
876
|
+
Each region keeps a cache of your app's channels and bundles; until it fills, the first device requests after a change are slower. Uploads and channel changes already prewarm automatically; use this to warm regions on demand, for example right before a release reaches users. Requires the app.upload_bundle permission for the app.
|
|
877
|
+
|
|
878
|
+
**Example:**
|
|
879
|
+
|
|
880
|
+
```bash
|
|
881
|
+
npx @capgo/cli@latest app prewarm com.example.app
|
|
882
|
+
```
|
|
883
|
+
|
|
884
|
+
**Options:**
|
|
885
|
+
|
|
886
|
+
| Param | Type | Description |
|
|
887
|
+
| -------------- | ------------- | -------------------- |
|
|
888
|
+
| **-a** | <code>string</code> | API key to link to your account |
|
|
889
|
+
| **--api-host** | <code>string</code> | Custom Capgo API URL for self-hosting or testing, e.g. https://api.example.com or http://127.0.0.1:8787 (env: CAPGO_API_HOST) |
|
|
890
|
+
|
|
866
891
|
### <a id="app-setting"></a> ⚙️ **Setting**
|
|
867
892
|
|
|
868
893
|
```bash
|