{"id":10699922,"date":"2018-09-18T14:44:19","date_gmt":"2018-09-18T14:44:19","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wp-cli-question\/"},"modified":"2018-09-18T14:44:19","modified_gmt":"2018-09-18T14:44:19","slug":"wp-cli-question","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wp-cli-question\/","title":{"rendered":"wp cli question"},"content":{"rendered":"<p>Hello there<\/p>\n<p>What is the correct way to import blogs using wp cli? <\/p>\n<p>I&#8217;d like to import all the blogs in a single pass. But a single blog<\/p>\n<p><code>wp multisite_aggregate aggregate_blog_id=3<\/code><\/p>\n<p>gives<\/p>\n<p><em>Error: &#8216;aggregate_blog_id=3&#8217; is not a registered subcommand of &#8216;multisite_aggregate&#8217;. See &#8216;wp help multisite_aggregate&#8217; for available subcommands. Did you mean &#8216;aggregate_blog_id&#8217;?<\/em><\/p>\n<p>and <\/p>\n<p><code>wp multisite_aggregate aggregate_blog_id<\/code> <\/p>\n<p>without parameters, just bombs out &#8230;<\/p>\n<p><em>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<br \/>\nFatal 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<br \/>\nStack trace:<br \/>\n#0 [internal function]: WDS_Multisite_Aggregate_CLI-&gt;aggregate_blog_id(Array, Array)<br \/>\n#1 phar:\/\/\/usr\/local\/bin\/wp\/vendor\/wp-cli\/wp-cli\/php\/WP_CLI\/Dispatcher\/CommandFactory.php(89): call_user_func(Array, Array, Array)<br \/>\n#2 [internal function]: WP_CLI\\Dispatcher\\CommandFactory::WP_CLI\\Dispatcher\\{closure}(Array, Array)<br \/>\n#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)<br \/>\n#4 phar:\/\/\/usr\/local\/bin\/wp\/vendor\/wp-cli\/wp-cli\/php\/WP_CLI\/Runner.php(365): WP_CLI\\Dispatcher\\Subcommand-&gt;invoke(Array, Array, Array)<br \/>\n#5 phar:\/\/\/usr\/local\/bin\/wp\/vendor\/wp-cli\/wp-cli\/php\/WP_CLI\/Runner.php(388): WP_CLI\\Runner-&gt;run_command(Array, Array)<br \/>\n#6 phar:\/\/\/usr\/local\/bin\/wp\/vendor\/wp-cli\/wp-cli\/php\/WP_CLI\/Runner.php(1113): WP_CLI\\Runner-&gt;_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<br \/>\n<\/em><\/p>\n<p>Am I missing something? <\/p>\n<p>Also the ..\/includes\/WDS_Multisite_Aggregate_CLI.php  implies blog_id should be used but this may be a typo<\/p>\n<p><em> * ## EXAMPLES<br \/>\n\t * \t\twp multisite_aggregate blog_id=1 <\/em><\/p>\n<p>I 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 &#8230;<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-10699922","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10699922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10699922\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10699922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}