Thank you for the answers.
The weird part was, php info said “I’m php 7.1”
I set the PHP version via .htaccess ( the only way according to my provider) and gave the path to the same version of the cli in settings.yaml but unfortunately it didn’t work.
After I gave up to find a similar case, I began to hack around.
I override a setting parameter in Packages/Framework/Neos.Flow/Classes/Core/Booting/Scripts.php
and it worked.
The thing which wonders me is, all other settings are there (db host, username, etc)except the path for cli.