I forgot my strapi admin email and password deployed in heroku

Ok found the answer myself, since it is already deployed in Heroku, you just first need to enter the Heroku CLI then run the npm command from there, it is simple yet most answers on forums are for resetting the local or the dev build admin cms, hope someone find this helpful. The command you just need after you login in Heroku CLI is:

heroku run npm run strapi admin:reset-user-password

2 Likes