The documentations from official source confusing and outdated.
I find the biggest challenges in Appium is not the scripting itself, but the setting up in OS X.
However, by the time you read this, this document may be outdated. Appium 1.15.1 desktop or Appium CLI 1.16.0.This document is created for below configuration