WP CLI not outputting anything
This is due to not proper installing of wp CLI uninstall the old one and install it again. https://make.wordpress.org/cli/handbook/guides/installing/
This is due to not proper installing of wp CLI uninstall the old one and install it again. https://make.wordpress.org/cli/handbook/guides/installing/
How can I search and replace by post type?
Please see WP-CLI r2.0 release blog post , for normal use with all commands remove wp-cli/wp-cli and require wp-cli/wp-cli-bundle
Those commands do work now after I stepped away for a few hours from the problem; so it was something on my end. In my examples in the question, You can substitute the reusable block’s post_id with the itemlookingfor to obtain the pages that contain your reusable block.
When I run the command using a number – 2 which is the full backup profile no – instead of the profile name it does run. So this problem has been solved. As a side note. I then I get this error: zip warning permission denied . I also see: error – Error #3382: Backup … Read more
Seems you are mixing wp db import with wp import. wp import indeed expects an WordPress Extended RSS (WXR) file as input. Whereas wp db import doesn’t know of an –authors option. Just use wp db import ccv3-2018-07-12-4e523fb.sql and everything should be fine.
Would wp user reset-password {username} work for your purposes? The docs are a little thin, but I gather it sets the password for {username} to a random string, then emails that string to the email address on record for {username}.
WP CLI’s option update command only accepts one key per call, but you can use other commands to handle updating multiple keys in sequence. The command page in the Codex has some examples. # Update one option on multiple sites using xargs. $ wp site list –field=url | xargs -n1 -I {} sh -c ‘wp … Read more
The WP CLI aliases are mostly for context. WP CLI uses Drush as a source of inspiration, but Drush has a much more robust implementation of aliases. If it were me, I would include other scripts and complex logic as a custom command. WP_CLI::add_command( ‘core foo’, ‘Foo_Command’ );
See Cannot create a post with Latin characters in the title on Windows. Using UTF-8 in PHP arguments doesn’t work on Windows for PHP <= 7.0, however it will work for PHP >= 7.1, as it was fixed as part of Support for long and UTF-8 path. A workaround for PHP <= 7.0 is to … Read more