Skip to content

Reset Password via CLI

The user:reset-password command allows administrators to reset a user’s password from the command line without knowing the current password. This is useful for recovering locked-out accounts or administrative password changes.

Terminal window
docker exec -it slink slink user:reset-password --email=<email>

When --password is omitted, the command prompts for the new password with hidden input and asks you to confirm it. The password is never displayed on screen.

OptionAliasRequiredDescription
--emailYesEmail address of the user whose password to reset. If omitted, you are prompted.
--password-pNoSet the new password inline. If omitted, you are prompted (with confirmation).
MessageCause
Error: User not foundNo user exists with the given email.
Error: Passwords do not match.The password and confirmation entered at the interactive prompt differ.