After the database has been created, Contao users can be created here.
Lists existing Contao users:
Option | Description |
---|---|
--help | Options overview |
--admins | Show administrators only |
--column=COLUMN | The columns display in the table (multiple values are allowed) |
--format=FORMAT | Output format ( txt, json ) |
php vendor/bin/contao-console contao:user:list --help
Creates a Contao user. If the command is executed without options, the user is interactively prompted for all details.
Option | Description |
---|---|
--help | Options overview |
--username | User name |
--name | Full user name |
--email | The user e-mail address |
--password | User password |
--admin | User is administrator |
--group | Groups to be assigned to the user (multiple values are allowed) |
--change-password | Prompt users to change their password when they first log in to the backend |
php vendor/bin/contao-console contao:user:create --help
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
Option | Description |
---|---|
--help | Options overview |
--username | The username of the back end user |
--password | The new password (using this option is not recommended for security reasons) |
--require-change | Require 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.