prestashop:employee:change-password

Informations

  • Path: src/PrestaShopBundle/Command/EmployeeChangePasswordCommand.php
  • Arguments:
    • email: Employee email (optional, prompted when omitted)
  • Options:
    • --password: New password. Prefer the interactive prompt to avoid leaking it in your shell history (optional, prompted when omitted)

Description

This command resets the password of an existing back-office employee from the command line. By default it is interactive and prompts for the email and the new password (entered twice). Passing the email argument and the --password option runs it non-interactively.

On success, the employee receives the “Your new password” email, the same template used by the Back Office forgot-password flow.

To provision a new SuperAdmin instead, use prestashop:employee:create-admin.

Examples

Reset a password interactively

$ bin/console prestashop:employee:change-password

Reset a password non-interactively

$ bin/console prestashop:employee:change-password [email protected] --password='S0meStr0ngP@ss!'