Can I reset admin password using console CLI interface? Didn't see anything like that when I run the craft file directly and it displayed list of commands.
Asked
Active
Viewed 1,277 times
2
Brad Bell
- 67,440
- 6
- 73
- 143
Ded Nolyxeux
- 133
- 9
-
I'm not sure about reseting via the console, but you can reset your password via MySQL: https://craftcms.stackexchange.com/questions/13781/reset-password-with-mysql – Simon Kuran Jul 23 '18 at 16:41
1 Answers
2
There's not a native Craft console command that could do that, but plugins can supply there own console commands, so you can write a plugin that added a command to do so.
Craft 2 plugin docs: https://docs.craftcms.com/v2/plugins/introduction.html
Craft 3 plugin docs: https://docs.craftcms.com/v3/extend/plugin-guide.html
And you can generate plugin boilerplate for both versions here: https://pluginfactory.io/ and there's even a "Console Commands" checkbox you can tick.
Brad Bell
- 67,440
- 6
- 73
- 143