the doc say
* @param \TYPO3\Surf\Domain\Model\Node $node Node to execute command against, NULL means localhost
but the definition actually is
public function execute($command, Node $node, ...
so it's not possible to execute local commands. This makes composer fail for me, because it tries to look up the composer.json (test -f) on the remote server instead of the local workspacePath.