how to stop appium server through command line?

Nitish Kumar picture Nitish Kumar · Nov 15, 2017 · Viewed 26.6k times · Source

The command I'm using to start the Appium server:

node appium --address 127.0.0.1 --port 4723 --session-override --no-reset --platform-name Android --platform-version 23 --automation-name Appium

How would I stop the server through command line?

Answer

Mike Collins picture Mike Collins · Nov 15, 2017

Ctrl+c

or

  1. Run ps -A | grep appium
  2. Note the process ID
  3. Run kill [process ID]

If you're looking to do this programmatically, see http://discuss.appium.io/t/launching-and-stopping-appium-server-programmtically/700.