<\/span><\/h3>.\n\n\n\nwp post delete $(wp post list --post_type='post' --date_query='before=2021-01-01' --format=ids)<\/code><\/pre>\n\n\n\nwp post list --post_type='post' --before=\"2021-01-01T00:00:00:00\"<\/code><\/pre>\n\n\n\nwp post list --before=\"2020-12-31T00:00:00:00\"<\/code><\/code><\/pre>\n\n\n\n<\/span>Make a user Super admin<\/span><\/h3>.\n\n\n\nwp super-admin add closemarketing<\/code><\/code><\/pre>.\n\n\n\n<\/span>Change password to a user<\/span><\/h2>.\n\n\n\nwp user update USER --user_pass=###<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"This is a list that I will be updating of the most common operations I perform with WordPress CLI.<\/p>\n","protected":false},"author":1,"featured_media":4130,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"Common Operations CLI WordPress Commands - Development","_seopress_titles_desc":"This is a list that I will be updating of the most common operations I perform with WordPress CLI. What is WP CLI? It is the execution of WordPress commands in a console.","_seopress_robots_index":"","inline_featured_image":false,"footnotes":""},"categories":[168],"tags":[],"class_list":["post-3051","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-development"],"_links":{"self":[{"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/posts\/3051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/comments?post=3051"}],"version-history":[{"count":0,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/posts\/3051\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/media\/4130"}],"wp:attachment":[{"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/media?parent=3051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/categories?post=3051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/tags?post=3051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}