prestashop:employee:create-adminsrc/PrestaShopBundle/Command/EmployeeCreateCommand.phpemail: Employee email (optional, prompted when omitted)--first-name: First name (optional, prompted when omitted)--last-name: Last name (optional, prompted when omitted)--password: Password. Prefer the interactive prompt to avoid leaking it in your shell history (optional, prompted when omitted)This command provisions a new back-office SuperAdmin employee from the command line. It is intended for first-admin provisioning and recovery, not for generic employee management: use the Team page in the Back Office for that.
The created account is always a SuperAdmin with full back-office access, active, on the default language, and associated to every shop. By default the command is interactive and prompts for the missing values. Passing all values as arguments and options runs it non-interactively, which is convenient for CI or automated provisioning.
To reset the password of an existing employee, use prestashop:employee:change-password.
$ bin/console prestashop:employee:create-admin
$ bin/console prestashop:employee:create-admin [email protected] \
--first-name=John --last-name=Doe --password='Str0ng!Pass'