php bin/console make:user

Create a new security user class

Usage

make:user [--is-entity] [--identity-property-name IDENTITY-PROPERTY-NAME] [--with-password] [--with-uuid] [--with-ulid] [--] [<name>]

Arguments

name   The name of the security user class (e.g. <fg=yellow>User</>) 

Options

      --is-entity                Do you want to store user data in the database (via Doctrine)? 
      --identity-property-name   Enter a property name that will be the unique "display" name for the user (e.g. <comment>email, username, uuid</comment>) 
      --with-password            Will this app be responsible for checking the password? Choose <comment>No</comment> if the password is actually checked by some other system (e.g. a single sign-on server) 
      --with-uuid                Use UUID for entity "id" 
      --with-ulid                Use ULID for entity "id" 

Help

The make:user command generates a new user class for security
and updates your security.yaml file for it. It will also generate a user provider
class if your situation needs a custom class.

php bin/console make:user User

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

Instead of using the default "int" type for the entity's "id", you can use the
UUID type from Symfony's Uid component.
https://symfony.com/doc/current/components/uid.html#storing-uuids-in-databases

php bin/console make:user --with-uuid

Or you can use the ULID type from Symfony's Uid component.
https://symfony.com/doc/current/components/uid.html#storing-ulids-in-databases

php bin/console make:user --with-ulid