wp cli question
-
Hello there
What is the correct way to import blogs using wp cli?
I’d like to import all the blogs in a single pass. But a single blog
wp multisite_aggregate aggregate_blog_id=3
gives
Error: ‘aggregate_blog_id=3’ is not a registered subcommand of ‘multisite_aggregate’. See ‘wp help multisite_aggregate’ for available subcommands. Did you mean ‘aggregate_blog_id’?
and
wp multisite_aggregate aggregate_blog_id
without parameters, just bombs out …
Notice: Trying to get property of non-object in /Users/pi/Documents/Websites/divitests.dev.cc/wp-content/plugins/wds-multisite-aggregate/includes/WDS_Multisite_Aggregate_CLI.php on line 87
Fatal error: Uncaught Error: Call to a member function get() on null in /Users/pi/Documents/Websites/divitests.dev.cc/wp-content/plugins/wds-multisite-aggregate/includes/WDS_Multisite_Aggregate_CLI.php:63
Stack trace:
#0 [internal function]: WDS_Multisite_Aggregate_CLI->aggregate_blog_id(Array, Array)
#1 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(89): call_user_func(Array, Array, Array)
#2 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(425): call_user_func(Object(Closure), Array, Array)
#4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(365): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(388): WP_CLI\Runner->run_command(Array, Array)
#6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1113): WP_CLI\Runner->_run_command_and_ex in /Users/pi/Documents/Websites/divitests.dev.cc/wp-content/plugins/wds-multisite-aggregate/includes/WDS_Multisite_Aggregate_CLI.php on line 63
Am I missing something?
Also the ../includes/WDS_Multisite_Aggregate_CLI.php implies blog_id should be used but this may be a typo
* ## EXAMPLES
* wp multisite_aggregate blog_id=1I have been relying on the predecessor wordpress-mu-sitewide-tags, from which this plugin is forked, but this implementation is obviously quite a lot better and may permit an almost seamless transition …
Thanks
- The topic ‘wp cli question’ is closed to new replies.