Skip to content

user:login

Display a one time login link for user ID 1, or another user.

To avoid the http://default domain in the link, set the DRUSH_OPTIONS_URI environment variable.

Examples

  • user:login --name=ryan node/add/blog
  • user:login --uid=123
  • user:login --mail=foo@bar.com

Arguments

  • [path]. Optional path to redirect to after logging in.

Options

  • --name=NAME. A user name to log in as.
  • --uid=UID. A user ID to log in as.
  • --mail=MAIL. A user email to log in as.

Global Options

  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush core:global-options.

Aliases

  • uli
  • user-login

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.