@mobilenext/mobilecli 0.0.35 → 0.0.37

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
@@ -31,6 +31,7 @@ A universal command-line tool for managing iOS and Android devices, simulators,
31
31
 
32
32
  - **Device Management**: List, manage, interactive with connected mobile devices
33
33
  - **Cross-Platform Support**: Works with iOS physical devices, iOS simulators, Android devices, and Android emulators
34
+ - **Emulator/Simulator Control**: Boot and shutdown emulators and simulators programmatically
34
35
  - **Screenshot Capture**: Take screenshots from any connected device with format options
35
36
  - **Multiple Output Formats**: Save screenshots as PNG or JPEG with quality control
36
37
  - **Screencapture video streaming**: Stream mjpeg video directly from device
@@ -81,8 +82,11 @@ brew install --cask android-platform-tools
81
82
  ### List Connected Devices 🔍
82
83
 
83
84
  ```bash
84
- # List all connected devices and simulators to your local or remote server
85
+ # List all online devices and simulators
85
86
  mobilecli devices
87
+
88
+ # List all devices including offline emulators and simulators
89
+ mobilecli devices --include-offline
86
90
  ```
87
91
 
88
92
  Example output:
@@ -92,17 +96,28 @@ Example output:
92
96
  "id": "12345678-1234567890ABCDEF",
93
97
  "name": "iPhone 15",
94
98
  "platform": "ios",
95
- "type": "real"
99
+ "type": "real",
100
+ "state": "online"
101
+ },
102
+ {
103
+ "id": "Pixel_6",
104
+ "name": "Pixel 6",
105
+ "platform": "android",
106
+ "type": "emulator",
107
+ "state": "online"
96
108
  },
97
109
  {
98
- "id": "emulator-5554",
99
- "name": "Pixel_7_API_34",
100
- "platform": "android",
101
- "type": "emulator"
110
+ "id": "iPhone_13",
111
+ "name": "iPhone 13",
112
+ "platform": "ios",
113
+ "type": "simulator",
114
+ "state": "offline"
102
115
  }
103
116
  ]
104
117
  ```
105
118
 
119
+ **Note**: Offline emulators and simulators can be booted using the `mobilecli device boot` command.
120
+
106
121
  ### Take Screenshots 📸
107
122
 
108
123
  ```bash
@@ -130,6 +145,12 @@ Note that screencapture is one way. You will have to use `io tap` commands to ta
130
145
  ### Device Control 🎮
131
146
 
132
147
  ```bash
148
+ # Boot an offline emulator or simulator
149
+ mobilecli device boot --device <device-id>
150
+
151
+ # Shutdown a running emulator or simulator
152
+ mobilecli device shutdown --device <device-id>
153
+
133
154
  # Reboot a device
134
155
  mobilecli device reboot --device <device-id>
135
156
 
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.35",
3
+ "version": "0.0.37",
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": {