contao:user

After the database has been created, Contao users can be created here.

contao:user:list

Lists existing Contao users:

OptionDescription
--helpOptions overview
--adminsShow administrators only
--column=COLUMNThe columns display in the table (multiple values are allowed)
--format=FORMATOutput format ( txt, json )
php vendor/bin/contao-console contao:user:list --help

contao:user:create

Creates a Contao user. If the command is executed without options, the user is interactively prompted for all details.

OptionDescription
--helpOptions overview
--usernameUser name
--nameFull user name
--emailThe user e-mail address
--passwordUser password
--adminUser is administrator
--groupGroups to be assigned to the user (multiple values are allowed)
--change-passwordPrompt users to change their password when they first log in to the backend
php vendor/bin/contao-console contao:user:create --help

contao:user:password

Change of a user password (requires a username as an argument). If the command is executed without options, the required information is requested interactively.

php vendor/bin/contao-console contao:user:password --help
OptionDescription
--helpOptions overview
--usernameThe username of the back end user
--passwordThe new password (using this option is not recommended for security reasons)
--require-changeRequire the user to change the password on their next login

For security reasons, outside of a local installation, a password should not be passed as an option directly on the CLI, as the password is then saved in plain text in the bash history.