Skip to content

user:password

Set the password for the user account with the specified name.

Examples

  • drush user:password someuser "correct horse battery staple". Set the password for the username someuser. See https://xkcd.com/936

Arguments

  • --name. The name of the account to modify.
  • --password. The new password for the account.

Aliases

  • upwd
  • user-password

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.