Appium can be installed via NPM or as a GUI Desktop application. We recommend installing Appium from NPM for better control and also for properly installing iOS support.
To Install Appium through the command line, you would need
npm . If you don't have Node installed, you can follow the instructions at https://nodejs.org.
npm install -g appium npm install -g appium-doctor
Now run appium-doctor to verify that the Appium installation was properly done.
After running Appium-doctor, you should see a checklist of items needed. Seeing green checks against the necessary items is a must and you may choose to complete the optional dependencies. If there are any issues, Appium should provide you steps for remediation.
Now that you've properly installed Appium, you can run it directly in the terminal.
You should see a message like this, which means Appium is running on your machine on port 4723.