setName('foo') ->setDescription('The foo command') ; } protected function execute(InputInterface $input, OutputInterface $output): int { $output->writeln('called'); return 0; } }