Home / Companies / Strapi / Blog / Post Details
Content Deep Dive

How to Reset a Forgotten Strapi Admin Password

Blog post from Strapi

Post Details
Company
Date Published
Author
Theodore Kelechukwu Onyejiaku
Word Count
1,008
Company Posts That Month
28
Language
English
Hacker News Points
-
Post removed?
No
Summary

Strapi administrator passwords can be reset without relying on the “Forgot password” email flow by using the supported `strapi admin:reset-user-password` CLI command from the project root, with Yarn, npm, or npx; npm requires an extra `--` before command options. Passwords must meet minimum complexity requirements, and administrators can be listed first with `admin:list-users` if the account email is unknown. Running the reset command without options provides interactive prompts through Yarn or npx, while a database with no administrator requires `admin:create-user` instead. On deployed environments, the command must use the same application configuration, environment variables, and database as the running Strapi instance, whether executed through SSH, Docker, a hosted shell, or locally with production credentials. To make future password-reset emails work, a real email provider such as Nodemailer, SendGrid, SES, Mailgun, or Resend should be configured along with the correct public admin URL. Older console-based methods that directly alter password data are discouraged for Strapi 5 because internal APIs and password hashing mechanisms have changed, making the official CLI commands the safer approach.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.