How to reset lost admin password in Magento 2
Utilize CLI to reset lost admin password in Magento 2. You should create a new admin user able to change your forgotten password. Use the following command, to generate a new user:

1 |
<path_to_magento>/bin/magento admin:user:create [--admin-user="..."] [--admin-password="..."] [--admin-email="..."] [--admin-firstname="..."] [--admin-lastname="..."] |
Source (
