How to start Genymotion device with shell command?

前端 未结 3 1375
半阙折子戏
半阙折子戏 2020-12-12 21:51

I need to start genymotion via shell command, does anyone know if it is possible to do this?

3条回答
  •  情深已故
    2020-12-12 22:47

    As of Genymotion 2.6.0 (Dec 2015), it appears they have moved the player executable to be player.app.

    On OSX you can launch a desired VM like this:

    # First, get a list of the VM's you have installed
    VBoxManage list vms
    # Returns something like "5.0.0 - API 21 - 768x1280" {091d022d-6a7b-4475-845f-7a6e06024fb6}
    

    Copy the VM ID, e.g. 091d022d-6a7b-4475-845f-7a6e06024fb6, and then use it again like this:

    # Launch a specific VM
    open -a /Applications/Genymotion.app/Contents/MacOS/player.app --args --vm-name '091d022d-6a7b-4475-845f-7a6e06024fb6'
    

提交回复
热议问题