Magento 2 : How to create a new admin user from terminal

If you want to create a new admin user from terminal in Magento 2 you need to run this command into your Magento 2 directory. php bin/magento admin:user:create –admin-firstname=Jane –admin-lastname=”Doe” –admin-email=”janedoe@email.com” –admin-user=jane –admin-password=”yourpassword1″ Your password must include both numeric and alphabetic characters.

How to enable/disable maintenance mode on Magento 2

You can enable the maintenance mode by going to your Magento’s directory and run this command:         php bin/magento maintenance:enable   If you want to set the maintenance flag for everyone, except one ip/ips, you need to run the command: magento maintenance:enable –ip= –ip= So everyone, except those 2 ips, will see the maintenance mode […]