@mobilenext/mobilecli 0.0.54 → 0.1.57

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
@@ -35,7 +35,7 @@ A universal command-line tool for managing iOS and Android devices, simulators,
35
35
  - **Multiple Output Formats**: Save screenshots as PNG or JPEG with quality control
36
36
  - **Screencapture video streaming**: Stream mjpeg/h264 video directly from device
37
37
  - **Device Control**: Reboot devices, tap screen coordinates, press hardware buttons
38
- - **App Management**: Launch app, terminate apps, install and uninstall
38
+ - **App Management**: Launch, terminate, install, uninstall, list, and get foreground apps
39
39
 
40
40
  ### 🎯 Platform Support
41
41
 
@@ -75,7 +75,7 @@ make build
75
75
 
76
76
  Xcode is required. Make sure you have it installed with the runtimes relevant for you installed. You will have to create Simulators and have them booted before `mobilecli` can use them.
77
77
 
78
- `mobilecli` will automatically install an agent on the device that is required for functionalities such as opening a url, tapping on buttons and streaming screen capture.
78
+ `mobilecli` will automatically install an agent on the device that is required for functions such as tapping on elements, pressing buttons and streaming screen capture.
79
79
 
80
80
  #### 🤖 For Android Support
81
81
  ```bash
@@ -186,6 +186,40 @@ mobilecli io text --device <device-id> 'hello world'
186
186
  - `VOLUME_UP`, `VOLUME_DOWN` - Volume up and down
187
187
  - `DPAD_UP`, `DPAD_DOWN`, `DPAD_LEFT`, `DPAD_RIGHT`, `DPAD_CENTER` - D-pad controls (Android only)
188
188
 
189
+ ### App Management 📱
190
+
191
+ ```bash
192
+ # List installed apps on device
193
+ mobilecli apps list --device <device-id>
194
+
195
+ # Get currently foreground app
196
+ mobilecli apps foreground --device <device-id>
197
+
198
+ # Launch an app
199
+ mobilecli apps launch <bundle-id> --device <device-id>
200
+
201
+ # Terminate an app
202
+ mobilecli apps terminate <bundle-id> --device <device-id>
203
+
204
+ # Install an app (.apk for Android, .ipa for iOS, .zip for iOS Simulator)
205
+ mobilecli apps install <path> --device <device-id>
206
+
207
+ # Uninstall an app
208
+ mobilecli apps uninstall <bundle-id> --device <device-id>
209
+ ```
210
+
211
+ Example output for `apps foreground`:
212
+ ```json
213
+ {
214
+ "status": "ok",
215
+ "data": {
216
+ "packageName": "com.example.app",
217
+ "appName": "Example App",
218
+ "version": "1.0.0"
219
+ }
220
+ }
221
+ ```
222
+
189
223
  ## HTTP API 🔌
190
224
 
191
225
  ***mobilecli*** provides an http interface for all the functionality that is available through command line. As a matter of fact, it is preferable to
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobilenext/mobilecli",
3
- "version": "0.0.54",
3
+ "version": "0.1.57",
4
4
  "author": "Mobile Next",
5
5
  "description": "A universal command-line tool for managing iOS and Android devices, simulators, emulators and apps",
6
6
  "repository": {