setIncludeAllPublicMethods(true); $commandFactory->commandProcessor()->setFormatterManager(new \Consolidation\OutputFormatters\FormatterManager()); $commandList = $commandFactory->createCommandsFromClass($myCommandClassInstance); $application = new \Symfony\Component\Console\Application('ac'); foreach ($commandList as $command) { $application->add($command); } $application->run();