Starts and stops appium in the background programmatically. Runs on mac or windows.
let appiumController = require('appium-controller')
//start appium with options
appiumController.startAppium({
port:'4724'
defaultCapabilities:'{"deviceName": "iPhone Simulator"}'
});
//or with default host:localhost, port:4723
appiumController.startAppium();
//shutdown with options
appiumController.stopAppium({
port:'4724'
});
//or with default port:4723
appiumController.stopAppium();
appium-controller --start
appium-controller --start -p 4724 --dc '{"deviceName": "iPhone Simulator"}'
appium-controller --stop
appium-controller --stop -p 4724
Run 'appium-controller --help' for full list of options.