Magento2 通过命令行添加后台管理员

在Magento根目录执行:

php bin/magento admin:user:create

该命令可以接受 --admin-user、--admin-email、--admin-firstname、--admin-lastname 参数:

php bin/magento admin:user:create --admin-user demoadmin --admin-email demoadmin@demo.com --admin-firstname demo --admin-lastname demo

 

原文链接: Magento2 通过命令行添加后台管理员

posted @ 2022-02-17 23:08  万博云计算  阅读(122)  评论(0编辑  收藏  举报