https://github.com/electricbubble/gidevice-cli
gidevice cli ( like `libimobiledevice` )
https://github.com/electricbubble/gidevice-cli
cli golang idevice idevicekit ios iphone libimobiledevice usbmuxd xctest
Last synced: 7 months ago
JSON representation
gidevice cli ( like `libimobiledevice` )
- Host: GitHub
- URL: https://github.com/electricbubble/gidevice-cli
- Owner: electricbubble
- License: mit
- Created: 2021-04-16T01:51:11.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-24T15:40:14.000Z (over 2 years ago)
- Last Synced: 2024-06-19T00:28:22.503Z (12 months ago)
- Topics: cli, golang, idevice, idevicekit, ios, iphone, libimobiledevice, usbmuxd, xctest
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 54
- Watchers: 3
- Forks: 12
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Golang-iDevice-CLI
[](https://github.com/electricbubble/gidevice-cli/blob/master/LICENSE)
## Installation
https://github.com/electricbubble/gidevice-cli/releases
#### Devices
```shell
$ gidevice list
$ gidevice listen
```#### DeveloperDiskImage
```shell
$ gidevice mount -l
# gidevice mount -l -u=39xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx7
$ gidevice mount -d=/path/.../DeviceSupport/14.4/
$ gidevice mount /path/.../DeviceSupport/14.4/DeveloperDiskImage.dmg /path/.../DeviceSupport/14.4/DeveloperDiskImage.dmg.signature
```#### App
```shell
$ gidevice applist
$ gidevice applist -t=all -u=39xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx7$ gidevice launch com.apple.Preferences
$ gidevice kill com.apple.Preferences$ gidevice install /path/.../WebDriverAgentRunner-Runner.ipa
$ gidevice uninstall com.leixipaopao.WebDriverAgentRunner.xctrunner$ gidevice ps
```#### Forward
```shell
# Default port local=8100 remote=8100
$ gidevice forward
$ gidevice forward -l=9100 -r=9100 -u=39xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx7
```#### XCTest
```shell
$ gidevice xctest com.leixipaopao.WebDriverAgentRunner.xctrunner
# Only the logs contained in the text are displayed
$ gidevice xctest com.leixipaopao.WebDriverAgentRunner.xctrunner --contains="ServerURLHere->" --contains="Running tests..." --contains="Built at"
$ gidevice xctest com.leixipaopao.WebDriverAgentRunner.xctrunner --env=USE_PORT=8200 --env=MJPEG_SERVER_PORT=9200
```#### Syslog
```shell
$ gidevice syslog
```#### CrashReport
```shell
$ gidevice crashreport /path/.../local/dir/ -e -k
```#### Screenshot
```shell
$ gidevice screenshot
$ gidevice screenshot -u=39xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx7 -o=/path/..../screenshot.png
```#### DeviceInfo
```shell
$ gidevice info
$ gidevice info -u=39xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx7 --json=true # for json format output
```## Thanks
| |About|
|---|---|
|[libimobiledevice/libimobiledevice](https://github.com/libimobiledevice/libimobiledevice)|A cross-platform protocol library to communicate with iOS devices|
|[anonymous5l/iConsole](https://github.com/anonymous5l/iConsole)|iOS usbmuxd communication impl iTunes protocol|
|[alibaba/taobao-iphone-device](https://github.com/alibaba/taobao-iphone-device)|tidevice can be used to communicate with iPhone device|
|**[electricbubble/gidevice](https://github.com/electricbubble/gidevice)**|communicate with iOS devices implemented with Golang|Thank you [JetBrains](https://www.jetbrains.com/?from=gwda) for providing free open source licenses