WPCLI – unknown –post_type parameter
-
Hi all, I am trying to execute with WPCLI the following code:
wp post delete $(wp post list –post_type=’post’ –name=hello-world –format=ids) –force && wp post delete $(wp post list –post_type=’page’ –name=sample-page — format=ids) –force && wp post create – -post_type=page –post_status=publish — post_title=”Home” && wp post create –post_type=page –post_status=publish — post_title=”Blog” && wp term update category 1 –name=Various — slug=various && wp option update timezone_string “Europe/Rome” && wp language core install it_EN && wp site switch-language it_EN && wp option update show_on_front page && wp option update page_on_front $ (wp post list – -post_type=’page’ –name=home –format=ids) && wp option update page_for_posts $(wp post list –post_type=’page’ –name=blog –format=ids) && wp option update rss_use_excerpt 1 && wp option update blog_public 0
but unfortunately I get the following errors:
parameter unknown –post_type
unknown –parameter name
unknown –parameter formatI point out that:
1) I am using windows 10;
2) I am using the code locally with the help of: LOCALTranslated with https://www.DeepL.com/Translator (free version)
- The topic ‘WPCLI – unknown –post_type parameter’ is closed to new replies.