If you’re an administrator you’ll see an option in the site list that allow you to login to the site without entering a user name or password.
You will also see a similar login link for at the top of the SITE DETAILS screen:
The login links described above will search the site users and login as the first administrator account it encounters. However, there are times where you might want to login as a particular user. In this case you can do so under the site USERS tab.
This function is particularly useful if you are troubleshooting an issue that only presents for a particular user or user role. With it, you no longer need to take the separate step of adding a user-switching plugin to the site.
You can remove the passwordless login links with an option in the settings area:
If you like you can delete the WP CLI Login Command Server plugin before you log out of the site. If you need to use the one-click login function again for that site it will be automatically installed.
Here are some things to keep in mind about how that works:
You can check the SSH logs (WPCloudDeploy → SSH Logs) to see if WP-CLI is throwing errors. If it is you might want to make sure that your WordPress plugins and themes for the site is compatible with the version of the PHP CLI active on the server.
Take a look at the WPCloudDeploy → TOOLS screen ( SET SERVER PHP CLI VERSION section) to see what version of the server PHP CLI is currently active.
If the site is currently running, say PHP 7.4 but the server PHP CLI Is set to 8.1, it is possible that an error could be thrown because WP CLI is trying to run some PHP 7.4 plugin / theme code from the site under the server’s PHP 8.1 CLI.
The solution is to make sure that the server PHP CLI version is set to the same version as the site (or, at least a more compatible version).