The %command.name% command generates a new Twig extension class, with a filter and a function declared through the #[AsTwigFilter] and #[AsTwigFunction] attributes. php %command.full_name% AppExtension If the argument is missing, the command will ask for the class name interactively.