how to stop appium server through command line?

34,522

Solution 1

Ctrl+c

or

Run pkill -9 -f appium in the Terminal.

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

Solution 2

If you have a lot of instances of appium running and don't want to stop them one at a time then try the following command it will close all of htem at once:

/usr/bin/killall -KILL node

run ps -A | grep appium to see how many processes are there and if there are too many then the command aobve comes to had.

Share:
34,522
Nitish Kumar
Author by

Nitish Kumar

Updated on July 09, 2022

Comments

  • Nitish Kumar
    Nitish Kumar almost 2 years

    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?

    • Mike Collins
      Mike Collins over 6 years
      Are you looking to do this manually or programmatically?