Problem with CLI

Hello, running Commands on the Flow CLI resulted in some Errors.

The Websercer use PHP 7.0
Neos Version 2.3

By Example running
./flow typo3.flow:resource:clean

Resulted in this error:
#0 /webserver/neos-test-2017/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Core/Bootstrap.php(86): TYPO3\Flow\Error\ErrorHandler->handleError(2, ‘Missing argumen…’, ‘/webserver/neos…’, 86, Array)
#1 /webserver/neos-test-2017/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Object/ObjectManager.php(530): TYPO3\Flow\Core\Bootstrap->__construct()
#2 /webserver/neos-test-2017/Packages/Fram in /webserver/neos-test-2017/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Error/ErrorHandler.php on line 81

The two most popular problems for cli errors like this are:

  • wrong php version on the cli (maybe you also have to configure the php binary path in the settings)
  • wrong FLOW_CONTEXT on cli

Also file system permissions might be to blame!