Create an administrator account in Magento. Can be used to reset the admin password or create a new user.
Related Articles
Common Magento Commands
Magento Minimum Requirements
Create User
- SSH into the server as the appropriate cPanel user
- Change directories to the document root of the website
cd $(docroot.py domain.com)
REPLACE: domain.com with the appropriate domain. - Create the user by running
php bin/magento admin:user:create --admin-user="[user]" --admin-email="[email@domain.com]" --admin-firstname="Admin" --admin-lastname="Admin"
REPLACE: [user] with the username, [email@domain.com] with the email, and Admin with the appropriate first and last name.
TIP: If the password needs to be updated on an existing account, you can just run the command above using the details from the account that needs to be updated, and you will be prompted for the new password. - When prompted, enter the password for the account
EXAMPLE:
imhkmc5@imhkm.com [~/magento.imhkm.com]$ php bin/magento admin:user:create --admin-user=support --admin-email=testing@servconfig.com --admin-firstname=IMH --admin-lastname=Support Admin password:
Created Magento administrator user named support
Comments
0 comments
Article is closed for comments.