@capgo/cli 8.109.0 → 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 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