Symfony Console Command — собственная команда

Создание кастомной console-команды в Symfony.
  #[AsCommand(name: 'app:test')]
  class TestCommand extends Command
  {
      protected function execute(InputInterface $input, OutputInterface $output): int
      {
          $output->writeln('Hello CLI');
          return Command::SUCCESS;
      }
  }