wiki:wp_cli_commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
wiki:wp_cli_commands [2022/12/28 10:44] – [Standard WP cli commands] add one line install command antisa | wiki:wp_cli_commands [2024/02/15 10:30] – [Standard WP cli commands] add --allow-root 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 17: | Line 17: | ||
Replace https:// | Replace https:// | ||
- | wp --path=< | + | wp --path=< |
Same as above but on remote host: | Same as above but on remote host: | ||
- | 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 51: | Line 55: | ||
====== References ====== | ====== References ====== | ||
- | * | + | * https:// |
- | * | + | * https:// |
+ | * https:// | ||
wiki/wp_cli_commands.txt · Last modified: 2024/03/27 11:28 by antisa