Use WP-CLI to generate a one-time login URL for any user
As of April 2026, One Time Login is a WordPress login plugin with 40K+ active installations and a 5/5 rating from 2 reviews. It has been downloaded 186K+ times in total. Requires WordPress 4.4+ and PHP 7.1+. Available on WordPress.org since 2016. Recently updated within the last 3 months. Download volume is stable this week. Top alternative: WPS Hide Login.
Need access to a WordPress install but don’t want to create a new user account? Use this plugin to generate one-time login URLs for any existing user.
Then, copy the URL, paste it into your web browser, and… voila!
Because they are one-time login URLs, they will only work once. If you need access again, you’ll need to run the WP-CLI command again.
wp plugin install one-time-login --activate && wp user one-time-login <user> --count=3 --delay-delete
After you run the command above, you’ll see a success message like this:
http://wpdev.test/wp-login.php?user_id=2&one_time_login_token=93974b48e3a418b895fc7ca476f1a607d8b99345
Or like this if you asked for more than one:
http://wpdev.test/wp-login.php?user_id=1…Just what I need in a CD pipeline to deploy WordPress. Works great with WordPress v6.0.3 too.
This is super awesome and will be helpful managing customers sites.
| WordPress | 4.4+ requiredTested up to 6.9.4 |
| PHP | 7.1+ required |
one-time-login/v1/token WP REST API endpoint to generate tokens [#28].Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.