setName('test-toto') ->setDescription('The test-toto command') ->setAliases(array('test')) ; } protected function execute(InputInterface $input, OutputInterface $output) { $output->write('test-toto'); } }