@capgo/cli 8.28.1 → 8.29.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
@@ -98,6 +98,19 @@ The most complete [documentation is here](https://capgo.app/docs/).
98
98
 
99
99
  Join the [discord](https://discord.gg/VnYRvBfgA6) to get help.
100
100
 
101
+
102
+ ## Dynamic monorepos
103
+
104
+ When a root `capacitor.config.ts` selects an app-specific source through an environment variable, keep that selector active and pass the source to Capgo:
105
+
106
+ ```bash
107
+ CAP_APP=qr-code-reader npx @capgo/cli@latest init \
108
+ --package-json ./package.json \
109
+ --main-file ./projects/qr-code-reader/src/main.ts \
110
+ --capacitor-config ./env-configs/capacitor.config.qr-code-reader.ts
111
+ ```
112
+
113
+ Capgo continues to load the root config while writing only the selected source. Use `--capacitor-config` on every config-changing CLI command, or the matching `capacitorConfig` SDK/MCP option.
101
114
  <!-- AUTO-GENERATED-DOCS-START -->
102
115
  ## 📑 Capgo CLI Commands
103
116
 
@@ -199,6 +212,9 @@ npx @capgo/cli@latest init YOUR_API_KEY com.example.app
199
212
  | **-i** | <code>string</code> | App icon path for display in Capgo Cloud |
200
213
  | **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
201
214
  | **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
215
+ | **--package-json** | <code>string</code> | Package JSON for the Capacitor app to onboard (useful in monorepos) |
216
+ | **--main-file** | <code>string</code> | Application entry file to update (useful in monorepos) |
217
+ | **--capacitor-config** | <code>string</code> | Capacitor config source to update (useful with dynamic monorepo configs) |
202
218
  | **--no-analytics** | <code>boolean</code> | Disable init analytics and terminal replay for this run |
203
219
 
204
220
 
@@ -405,7 +421,8 @@ npx @capgo/cli@latest bundle upload com.example.app --path ./dist --channel prod
405
421
  | **--delta-only** | <code>boolean</code> | Upload only delta updates without full bundle for maximum speed (useful for large apps) |
406
422
  | **--no-delta** | <code>boolean</code> | Disable delta updates even if instant updates are enabled |
407
423
  | **--encrypted-checksum** | <code>string</code> | An encrypted checksum (signature). Used only when uploading an external bundle. |
408
- | **--auto-set-bundle** | <code>boolean</code> | Set the bundle in capacitor.config.json |
424
+ | **--auto-set-bundle** | <code>boolean</code> | Set the bundle version in Capacitor config |
425
+ | **--capacitor-config** | <code>string</code> | Capacitor config source to update (useful with dynamic monorepo configs) |
409
426
  | **--dry-upload** | <code>boolean</code> | Dry upload the bundle process: add the row in database without uploading files or updating channels (Used by Capgo for internal testing) |
410
427
  | **--package-json** | <code>string</code> | Paths to package.json files for monorepos (comma-separated) |
411
428
  | **--node-modules** | <code>string</code> | Paths to node_modules directories for monorepos (comma-separated) |
@@ -747,6 +764,7 @@ npx @capgo/cli@latest app setting plugins.CapacitorUpdater.defaultChannel --stri
747
764
  | -------------- | ------------- | -------------------- |
748
765
  | **--bool** | <code>string</code> | A value for the setting to modify as a boolean, ex: --bool true |
749
766
  | **--string** | <code>string</code> | A value for the setting to modify as a string, ex: --string "Production" |
767
+ | **--capacitor-config** | <code>string</code> | Capacitor config source to update (useful with dynamic monorepo configs) |
750
768
 
751
769
  ### <a id="app-set"></a> ⚙️ **Set**
752
770
 
@@ -990,6 +1008,7 @@ npx @capgo/cli@latest key save --key ./path/to/key.pub
990
1008
  | **-f** | <code>boolean</code> | Force generate a new one |
991
1009
  | **--key** | <code>string</code> | Key path to save in Capacitor config |
992
1010
  | **--key-data** | <code>string</code> | Key data to save in Capacitor config |
1011
+ | **--capacitor-config** | <code>string</code> | Capacitor config source to update (useful with dynamic monorepo configs) |
993
1012
 
994
1013
  ### <a id="key-create"></a> 🔨 **Create**
995
1014
 
@@ -1013,6 +1032,7 @@ npx @capgo/cli@latest key create
1013
1032
  | Param | Type | Description |
1014
1033
  | -------------- | ------------- | -------------------- |
1015
1034
  | **-f** | <code>boolean</code> | Force generate a new one |
1035
+ | **--capacitor-config** | <code>string</code> | Capacitor config source to update (useful with dynamic monorepo configs) |
1016
1036
 
1017
1037
  ### <a id="key-delete_old"></a> 🗑️ **Delete_old**
1018
1038
 
@@ -1028,6 +1048,12 @@ npx @capgo/cli@latest key delete_old
1028
1048
  npx @capgo/cli@latest key delete_old
1029
1049
  ```
1030
1050
 
1051
+ **Options:**
1052
+
1053
+ | Param | Type | Description |
1054
+ | -------------- | ------------- | -------------------- |
1055
+ | **--capacitor-config** | <code>string</code> | Capacitor config source to update (useful with dynamic monorepo configs) |
1056
+
1031
1057
 
1032
1058
  ## <a id="account"></a> 👤 **Account**
1033
1059
 
@@ -1789,6 +1815,7 @@ npx @capgo/cli@latest notifications setup com.example.app
1789
1815
  | **--force** | <code>boolean</code> | Overwrite the helper file if it already exists |
1790
1816
  | **--no-install** | <code>boolean</code> | Skip installing the notifications package |
1791
1817
  | **--no-sync** | <code>boolean</code> | Skip Capacitor sync |
1818
+ | **--capacitor-config** | <code>string</code> | Capacitor config source to update (useful with dynamic monorepo configs) |
1792
1819
 
1793
1820
 
1794
1821
  ## <a id="probe"></a> 🔹 **Probe**
@@ -1823,7 +1850,7 @@ npx @capgo/cli@latest mcp
1823
1850
  🤖 Start the Capgo MCP (Model Context Protocol) server for AI agent integration.
1824
1851
  This command starts an MCP server that exposes Capgo functionality as tools for AI agents.
1825
1852
  The server communicates via stdio and is designed for non-interactive, programmatic use.
1826
- Available tools exposed via MCP:
1853
+ Selected tools exposed via MCP:
1827
1854
  - capgo_list_apps, capgo_add_app, capgo_update_app, capgo_delete_app
1828
1855
  - capgo_upload_bundle, capgo_list_bundles, capgo_delete_bundle, capgo_cleanup_bundles
1829
1856
  - capgo_list_channels, capgo_add_channel, capgo_update_channel, capgo_delete_channel
@@ -1839,7 +1866,7 @@ Example usage with Claude Desktop:
1839
1866
  "mcpServers": {
1840
1867
  "capgo": {
1841
1868
  "command": "npx",
1842
- "args": ["@capgo/cli", "mcp"]
1869
+ "args": ["@capgo/cli@latest", "mcp"]
1843
1870
  }
1844
1871
  }
1845
1872
  }
@@ -1847,9 +1874,15 @@ Example usage with Claude Desktop:
1847
1874
  **Example:**
1848
1875
 
1849
1876
  ```bash
1850
- npx @capgo/cli mcp
1877
+ npx @capgo/cli@latest mcp
1851
1878
  ```
1852
1879
 
1880
+ ## <a id="options-mcp"></a> Options (Mcp)
1881
+
1882
+ | Param | Type | Description |
1883
+ | -------------- | ------------- | -------------------- |
1884
+ | **--capacitor-config** | <code>string</code> | Capacitor config source to update (useful with dynamic monorepo configs) |
1885
+
1853
1886
 
1854
1887
 
1855
1888
  <!-- AUTO-GENERATED-DOCS-END -->