Appium on device

Hello, friends. Is it possible to install and initialise appium directly on device? Is there any api if im not able to use desktop appium app?

Yes it is possible.
install node.js
use the command : npm install -g appium
use the command : appium
then write the test cases