2

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.

1

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.