@capgo/cli 7.93.2 → 7.93.4
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 +37 -5
- package/dist/index.js +408 -393
- package/dist/package.json +4 -2
- package/dist/src/init/command.d.ts +23 -0
- package/dist/src/init/runtime.d.ts +1 -0
- package/dist/src/init/ui/components.d.ts +3 -1
- package/dist/src/init/updater.d.ts +13 -0
- package/dist/src/run/device.d.ts +5 -0
- package/dist/src/sdk.js +1 -1
- package/package.json +4 -2
- package/skills/usage/SKILL.md +3 -1
package/README.md
CHANGED
|
@@ -24,6 +24,8 @@ Follow the documentation here: https://capacitorjs.com/docs/getting-started/
|
|
|
24
24
|
## 📋 Table of Contents
|
|
25
25
|
|
|
26
26
|
- 🚀 [Init](#init)
|
|
27
|
+
- 📱 [Run](#run)
|
|
28
|
+
- [Device](#run-device)
|
|
27
29
|
- 🔹 [Star](#star)
|
|
28
30
|
- 🔹 [Star-all](#star-all)
|
|
29
31
|
- 👨⚕️ [Doctor](#doctor)
|
|
@@ -86,6 +88,7 @@ npx @capgo/cli@latest init
|
|
|
86
88
|
🚀 Initialize a new app in Capgo Cloud with step-by-step guidance.
|
|
87
89
|
This includes adding code for updates, building, uploading your app, and verifying update functionality.
|
|
88
90
|
Capgo bundles are web assets and can be fetched by anyone who knows the URL. Use encryption for banking, regulated, or other high-security apps.
|
|
91
|
+
During the iOS run-on-device step, choose a physical iPhone/iPad or simulator. If you choose a physical device, the CLI lets you connect, unlock, and check again before it launches the app.
|
|
89
92
|
|
|
90
93
|
**Example:**
|
|
91
94
|
|
|
@@ -93,7 +96,7 @@ Capgo bundles are web assets and can be fetched by anyone who knows the URL. Use
|
|
|
93
96
|
npx @capgo/cli@latest init YOUR_API_KEY com.example.app
|
|
94
97
|
```
|
|
95
98
|
|
|
96
|
-
|
|
99
|
+
### <a id="init-options"></a> Options
|
|
97
100
|
|
|
98
101
|
| Param | Type | Description |
|
|
99
102
|
| -------------- | ------------- | -------------------- |
|
|
@@ -103,6 +106,35 @@ npx @capgo/cli@latest init YOUR_API_KEY com.example.app
|
|
|
103
106
|
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
104
107
|
|
|
105
108
|
|
|
109
|
+
## <a id="run"></a> 📱 **Run**
|
|
110
|
+
|
|
111
|
+
📱 Run Capacitor apps on devices from the CLI.
|
|
112
|
+
|
|
113
|
+
### <a id="run-device"></a> 🔹 **Device**
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
npx @capgo/cli@latest run device
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
📱 Run your Capacitor app on a connected device or simulator.
|
|
120
|
+
If you omit the platform in an interactive terminal, the command asks whether to start on iOS or Android.
|
|
121
|
+
The command lists available devices and simulators, lets you reload the list, and runs with your selection.
|
|
122
|
+
For iOS, this asks whether to use a physical iPhone/iPad or simulator before showing devices.
|
|
123
|
+
Use --no-launch to print the resolved command without starting the app.
|
|
124
|
+
|
|
125
|
+
**Example:**
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
npx @capgo/cli@latest run device ios --no-launch
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**Options:**
|
|
132
|
+
|
|
133
|
+
| Param | Type | Description |
|
|
134
|
+
| -------------- | ------------- | -------------------- |
|
|
135
|
+
| **--no-launch** | <code>boolean</code> | Resolve and print the run command without starting the app |
|
|
136
|
+
|
|
137
|
+
|
|
106
138
|
## <a id="star"></a> 🔹 **Star**
|
|
107
139
|
|
|
108
140
|
```bash
|
|
@@ -122,7 +154,7 @@ npx @capgo/cli@latest star-all
|
|
|
122
154
|
⭐ Star all Capgo GitHub repositories with a small random delay between each request.
|
|
123
155
|
If you do not pass repositories, this defaults to all Cap-go repositories whose name starts with `capacitor-`.
|
|
124
156
|
|
|
125
|
-
|
|
157
|
+
### <a id="star-all-options"></a> Options
|
|
126
158
|
|
|
127
159
|
| Param | Type | Description |
|
|
128
160
|
| -------------- | ------------- | -------------------- |
|
|
@@ -146,7 +178,7 @@ This command helps diagnose issues with your setup.
|
|
|
146
178
|
npx @capgo/cli@latest doctor
|
|
147
179
|
```
|
|
148
180
|
|
|
149
|
-
|
|
181
|
+
### <a id="doctor-options"></a> Options
|
|
150
182
|
|
|
151
183
|
| Param | Type | Description |
|
|
152
184
|
| -------------- | ------------- | -------------------- |
|
|
@@ -170,7 +202,7 @@ Use --apikey=******** in any command to override it.
|
|
|
170
202
|
npx @capgo/cli@latest login YOUR_API_KEY
|
|
171
203
|
```
|
|
172
204
|
|
|
173
|
-
|
|
205
|
+
### <a id="login-options"></a> Options
|
|
174
206
|
|
|
175
207
|
| Param | Type | Description |
|
|
176
208
|
| -------------- | ------------- | -------------------- |
|
|
@@ -1223,7 +1255,7 @@ and reports whether an update would be delivered, or explains why not.
|
|
|
1223
1255
|
npx @capgo/cli@latest probe --platform ios
|
|
1224
1256
|
```
|
|
1225
1257
|
|
|
1226
|
-
|
|
1258
|
+
### <a id="probe-options"></a> Options
|
|
1227
1259
|
|
|
1228
1260
|
| Param | Type | Description |
|
|
1229
1261
|
| -------------- | ------------- | -------------------- |
|