php bin/console make:form

Creates a new form class

Usage

make:form [<name> [<bound-class>]]

Arguments

name          The name of the form class (e.g. <fg=yellow>GentlePizzaType</>) 
bound-class   The name of Entity or fully qualified model class name that the new form will be bound to (empty for none) 

Help

The make:form command generates a new form class.

php bin/console make:form UserType

If the argument is missing, the command will ask for the form class interactively.

You can optionally specify the bound class in a second argument.
This can be the name of an entity like User

php bin/console make:form UserType User

You can also specify a fully qualified name to another class like \App\Dto\UserData.
Slashes must be escaped in the argument.

php bin/console make:form UserType \\App\\Dto\\UserData