I want to know how to install an ipa/app file into iPhone just using the command line?
The device maybe without jailbreak or jailbroken already.
I tried to
With the new Apple Configurator 2 application, you can Install Automation Tools... from the menu. This will add support for the command-line tool "cfgutil".
cfgutil allows you to install ipa's from the command-line using cfgutil install-app
. We use it on our build server to automatically update the device with the latest build.