I forgot my strapi admin email and password deployed in heroku

Hi, as the title says I forgot both my email and password for strapi admin deployed at heroku, I know you can reset it on development but how about the one that is already deployed in heroku, how could I retrieve both my email and password, is it inside the database?

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