Generate a login link for a user

Hi,

Is it possible to generate a login link to a user’s account from the admin’s end?

Thanks.

Is this possible using magic links but can they be generated via the command prompt?