wiki:wp_cli_commands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:wp_cli_commands [2023/04/20 08:32] – [Search and replace string in DB] add --skip-columns=guid antisa | wiki:wp_cli_commands [2024/03/27 10:28] (current) – add Troubleshooting antisa | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| chmod +x wp-cli.phar &&\ | chmod +x wp-cli.phar &&\ | ||
| mv wp-cli.phar / | mv wp-cli.phar / | ||
| - | wp --info | + | wp --info |
| Below commands are executed by root user hence the flag --allow-root. | Below commands are executed by root user hence the flag --allow-root. | ||
| ==== Search and replace string in DB ==== | ==== Search and replace string in DB ==== | ||
| Line 22: | Line 22: | ||
| wp --ssh=user@example.host.com --path=< | wp --ssh=user@example.host.com --path=< | ||
| + | |||
| + | ==== Update home and site url ==== | ||
| + | wp option update home ' | ||
| + | wp option update siteurl ' | ||
| ==== Change user's password ==== | ==== Change user's password ==== | ||
| Line 45: | Line 49: | ||
| + | ===== Troubleshooting ===== | ||
| + | If the wp cli doesn' | ||
| + | |||
| + | wp --debug plugin list --allow-root --skip-plugins | ||
| ====== Tested on ====== | ====== Tested on ====== | ||
| * Debian 10 | * Debian 10 | ||
| Line 51: | Line 59: | ||
| ====== References ====== | ====== References ====== | ||
| - | * | + | * https:// |
| - | * | + | * https:// |
| + | * https:// | ||
| + | * https:// | ||
wiki/wp_cli_commands.1681979531.txt.gz · Last modified: by antisa
