The %command.name% command generates a new twig extension with its runtime class. php %command.full_name% AppExtension If the argument is missing, the command will ask for the class name interactively.