brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: wp user reset-password --skip-email changes a wordpress password without mail

WordPress
~/tips/tip-wordpress-user-reset-password-skip-email

wp user reset-password admin --skip-email --show-password

Sets a new random password for a user without sending an email and prints it in the terminal.

When a site cannot send email, the lost password link does not help.

wp user reset-password admin --skip-email --show-password

This sets a new random password for the user. --skip-email stops WordPress from sending the notification, and --show-password prints the password in the terminal so you can pass it on. You can give several logins or IDs in one call. Use --porcelain instead of --show-password when a script should receive only the password. The terminal scrollback and shell history can keep what you print, so change the password again after the first login.

Further reading: WP-CLI: wp user reset-password

More WordPress tips wp user application-password create anna backup-script --porcelain define( 'MEDIA_TRASH', true ); wp cli check-update wp theme delete --all wp media image-size All WordPress tips (85) All topics

Link