Answers.Body: <p>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.</p>
  
  <p>Craft 2 plugin docs: <a href="https://docs.craftcms.com/v2/plugins/introduction.html" rel="nofollow noreferrer">https://docs.craftcms.com/v2/plugins/introduction.html</a></p>
  
  <p>Craft 3 plugin docs: <a href="https://docs.craftcms.com/v3/extend/plugin-guide.html" rel="nofollow noreferrer">https://docs.craftcms.com/v3/extend/plugin-guide.html</a></p>
  
  <p>And you can generate plugin boilerplate for both versions here: <a href="https://pluginfactory.io/" rel="nofollow noreferrer">https://pluginfactory.io/</a> and there's even a "Console Commands" checkbox you can tick.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-23T19:16:37.463Z
Answers.LastActivityDate: 2018-07-23T19:16:37.463Z
Answers.UserDisplayName: Brad Bell
Body: <p>Can I reset admin password using console CLI interface? Didn't see anything like that when I run the <code>craft</code> file directly and it displayed list of commands.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-23T16:41:06.790Z
Comments.Text: 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
Comments.UserDisplayName: Simon Kuran
Tags: <password><console>
Title: Reset admin account password using command line interface
ThreadText: # Reset admin account password using command line interface
  
  (Asked by: username_0 on 2018-07-23)
  
  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.
  
  **Tags:** password, console
  
  > **Comments:**
  > **username_1**: 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  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-07-23. Score: 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.
  
  
  ---
  
  