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