{"id":4451,"date":"2025-11-05T02:52:32","date_gmt":"2025-11-05T02:52:32","guid":{"rendered":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/how-to-use-wp-cli-to-manage-wordpress-sites-more-efficiently\/"},"modified":"2025-11-05T02:52:33","modified_gmt":"2025-11-05T02:52:33","slug":"the-right-way-to-use-wp-cli-to-arrange-wordpress-websites-extra-successfully","status":"publish","type":"post","link":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/the-right-way-to-use-wp-cli-to-arrange-wordpress-websites-extra-successfully\/","title":{"rendered":"The right way to Use WP-CLI to Arrange WordPress Websites Extra Successfully"},"content":{"rendered":"<p><\/p>\n<div id=\"wpblog-post-body\">\n<p>WordPress has a user-friendly graphical interface that makes website control easy.\u00a0<\/p>\n<p>However do you know there\u2019s in a different way to run your website online?<\/p>\n<p>Meet WP-CLI, the WordPress Command Line Interface. It does the entirety WP Admin can, plus extra.<\/p>\n<p>You&#8217;ll use it to have interaction together with your website during the command line in a terminal, which will if truth be told prevent numerous time \u2014 whether or not you\u2019re managing content material, plugins, subject matters, customers, or the rest.<\/p>\n<p>On this information, we\u2019ll duvet what WP-CLI is and percentage some helpful instructions that can assist you stand up to hurry.<\/p>\n<p>Whether or not your website\u2019s hosted via WordPress.com or any other supplier, WP-CLI might be the talent improve you\u2019re on the lookout for to make managing websites extra environment friendly and versatile.<\/p>\n<h2 class=\"wp-block-heading\">What&#8217;s WP-CLI?\u00a0<\/h2>\n<p>WP-CLI is the legitimate command-line interface for WordPress. It\u2019s been constructed to assist builders organize their websites extra temporarily and flexibly.\u00a0<\/p>\n<p>As an alternative of managing a website during the graphical WP Admin interface in a browser, WP-CLI allows you to run robust instructions out of your number of terminal instrument.\u00a0<\/p>\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" data-attachment-id=\"81638\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-powershell-example\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-powershell-example.jpg\" data-orig-size=\"1400,884\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-PowerShell-Example\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-powershell-example.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-powershell-example.jpg?w=1024\" width=\"1024\" height=\"646\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-powershell-example.jpg?w=1024\" alt=\"WP-CLI PowerShell Example&#10;\" class=\"wp-image-81638\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-powershell-example.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-powershell-example.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-powershell-example.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-powershell-example.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-powershell-example.jpg 1400w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p>For instance, with instructions, you&#8217;ll:<\/p>\n<ul class=\"wp-block-list\">\n<li>Set up a listing of plugins on a website<\/li>\n<li>Assign a couple of posts to another person<\/li>\n<li>Create new customers<\/li>\n<li>Delete all unsolicited mail feedback.\u00a0<\/li>\n<\/ul>\n<p>You&#8217;ll even create a brand new WordPress set up, transfer to another model of WordPress core, and seek for and exchange strings within the database \u2014 issues you&#8217;ll\u2019t do from WP Admin.<\/p>\n<h3 class=\"wp-block-heading\">The tale in the back of WP-CLI<\/h3>\n<p>WP-CLI is an open-source undertaking, identical to WordPress itself.\u00a0<\/p>\n<p>It was once at first created via Andreas Creten, Cristi Burc\u0103, and previous Automattician Daniel Bachhuber, and is now maintained via Alain Schlesser with contributions from builders in every single place the arena.<\/p>\n<p>To make sure compatibility with the most recent variations of WordPress, WP-CLI follows an ordinary unlock cycle. Updates are in most cases rolled out each 3 to 4 months and come with new instructions and stepped forward efficiency.\u00a0<\/p>\n<p>At its core, WP-CLI objectives to make WordPress extra developer-friendly.<\/p>\n<p>When you get ok with it, you&#8217;ll organize one or many websites extra successfully \u2014 or even automate duties you\u2019d by no means be capable of in WP Admin.<\/p>\n<h2 class=\"wp-block-heading\">The right way to set up WP-CLI<\/h2>\n<p>Some internet hosts come with WP-CLI via default \u2014 and WordPress.com is one in every of them.<\/p>\n<p>To make use of WP-CLI on WordPress.com, your website must be at the Industry or Trade plan.<\/p>\n<p>First, you&#8217;ll want to have SSH get right of entry to to the server the place WordPress is put in.\u00a0<\/p>\n<p>To test if WP-CLI is put in, check out working a model test via getting into the next command:\u00a0<\/p>\n<pre class=\"wp-block-code\"><code>wp cli model<\/code><\/pre>\n<p>If WP-CLI is put in, you\u2019ll see one thing like:<\/p>\n<pre class=\"wp-block-code\"><code>WP-CLI 2.12.0<\/code><\/pre>\n<p>If now not, you\u2019ll get a message reminiscent of:<\/p>\n<pre class=\"wp-block-code\"><code>command now not discovered: wp<\/code><\/pre>\n<p class=\"has-primary-light-background-color has-background\">If WP-CLI isn\u2019t put in but, practice those set up directions.<\/p>\n<h2 class=\"wp-block-heading\">Why use WP-CLI?<\/h2>\n<p>The primary causes to make use of WP-CLI over WP Admin are the<strong> potency<\/strong> and<strong> get right of entry to benefits<\/strong>.<\/p>\n<p>It allows you to:<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Execute instructions in seconds<\/strong> <strong>as an alternative of clicking via a couple of monitors <\/strong>in WP Admin, saving time when putting in new websites or managing current ones.<\/li>\n<\/ul>\n<ul class=\"wp-block-list\">\n<li><strong>Stay operating although an issue prevents you from having access to WP Admin<\/strong> \u2014 for instance, a plugin struggle. In the ones instances, WP-CLI allows you to disable plugins, create person accounts, and replace WordPress core, all with out the use of WP Admin.<\/li>\n<\/ul>\n<ul class=\"wp-block-list\">\n<li><strong>Carry out duties that WP Admin doesn\u2019t permit with out putting in additional plugins,<\/strong> reminiscent of interacting with the database or working bulk movements like putting in and activating a couple of subject matters or plugins with one command, producing dummy content material, rolling again WordPress core or plugin variations, and managing a couple of websites at the identical server from a unmarried command.<\/li>\n<\/ul>\n<ul class=\"wp-block-list\">\n<li><strong>Mix WP-CLI instructions into chains or scripts to automate complete workflows <\/strong>\u2014 for instance, putting in a brand new website, configuring settings, growing person accounts, putting in plugins, and producing dummy content material, all from one script.<\/li>\n<\/ul>\n<p>Certain, you wish to have to be informed a brand new method of operating with WordPress to get the entire advantages of WP-CLI.\u00a0<\/p>\n<p>Alternatively, it doesn\u2019t take lengthy to get accustomed to this method, and as soon as you might be, you\u2019ll be operating a lot more successfully.\u00a0<\/p>\n<p>In case your website is hosted at the WordPress.com Industry or Trade plan, you&#8217;ll use WP-CLI plus get get right of entry to to a couple of WordPress.com-only instructions, a few of which we duvet later on this information.\u00a0<\/p>\n<p>The most efficient phase? As WP-CLI was once constructed for builders, you get numerous freedom in how you employ it.<\/p>\n<h2 class=\"wp-block-heading\">Examples of commonplace WP-CLI instructions and what you&#8217;ll do with them<\/h2>\n<p>Let\u2019s pass over some examples of commonplace instructions and why chances are you&#8217;ll need to use them.<\/p>\n<p>Ahead of we get to the examples, it\u2019s price having a look on the layout of the instructions.\u00a0<\/p>\n<p>WP-CLI instructions typically practice this construction:<\/p>\n<pre class=\"wp-block-code\"><code>wp <command> <subcommand> [arguments] [--flags] [--flag=value]<\/subcommand><\/command><\/code><\/pre>\n<p class=\"has-primary-light-background-color has-background\">Each and every command begins with <strong>wp<\/strong>, which tells the shell you\u2019re working a WP-CLI command. wp is then adopted via a <strong>command<\/strong> and incessantly a <strong>subcommand<\/strong>.<\/p>\n<p>Examples come with plugin and checklist \u2014 the command for record all of the plugins put in at the website: <\/p>\n<pre class=\"wp-block-code\"><code>wp plugin checklist<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" data-attachment-id=\"81640\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-plugin-list\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list.jpg\" data-orig-size=\"1400,831\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-plugin-list\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list.jpg?w=1024\" width=\"1024\" height=\"607\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list.jpg?w=1024\" alt=\"WP-CLI wp plugin list\" class=\"wp-image-81640\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list.jpg 1400w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p>The instructions too can come with arguments, reminiscent of:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin replace hello-dolly<\/code><\/pre>\n<p>This command updates the <strong>hello-dolly<\/strong> plugin (if an replace is to be had).<\/p>\n<p>Flags will also be added to instructions. They begin with \u2014 and both toggle choices or go a worth to the command.<\/p>\n<p>For instance, when including the <strong>\u2013popularity=lively<\/strong> flag to the wp plugin checklist command, it&#8217;s going to solely checklist the lively plugins at the website:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin checklist --status=lively<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81645\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-plugin-update-active-2\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-active-1.jpg\" data-orig-size=\"1400,380\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-plugin-update-active\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-active-1.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-active-1.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"277\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-active-1.jpg?w=1024\" alt=\"WP-CLI wp plugin update active\" class=\"wp-image-81645\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-active-1.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-active-1.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-active-1.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-active-1.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-active-1.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p>You&#8217;ll additionally chain instructions in combination the use of<strong> &amp;&amp;<\/strong>, reminiscent of:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin set up contact-form-7 --activate &amp;&amp; wp plugin set up akismet --activate &amp;&amp; wp theme set up twentytwentyfive --activate<\/code><\/pre>\n<p>This command installs and turns on the <strong>Touch Shape 7<\/strong> and <strong>Akismet<\/strong> plugins, together with the <strong>Twenty Twenty-5<\/strong> theme.<\/p>\n<p>You&#8217;ll upload <strong>\u2013assist<\/strong> to any command to view its subcommands, flags, and different knowledge in WP-CLI.<\/p>\n<p>For instance:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin --help\n\nwp plugin checklist --help<\/code><\/pre>\n<p>As we pass during the examples, you\u2019ll get a greater thought of the way WP-CLI instructions are structured.<\/p>\n<p>You&#8217;ll use WP-CLI via terminal instrument, together with the loose Home windows Terminal and macOS Terminal apps.<\/p>\n<p>You&#8217;ll additionally use loops and Bash scripts with WP-CLI to construct extra complicated, automatic workflows \u2014 appearing bulk updates, managing a couple of websites, and streamlining advanced WordPress repairs duties with a unmarried command.<\/p>\n<h2 class=\"wp-block-heading\">The right way to organize WordPress plugins with WP-CLI<\/h2>\n<p><strong>wp plugi<\/strong>n is a at hand command for interacting with plugins on a website by means of WP-CLI.\u00a0<\/p>\n<p>It allows you to set up, replace, and delete plugins the use of instructions relatively than navigating a couple of steps in WP Admin \u2014 and saves you numerous time.<\/p>\n<p>For instance, when you incessantly arrange new websites and feature a listing of plugins from the WordPress.org Plugin Listing that you just at all times set up, you&#8217;ll do so with a unmarried time-saving command.<\/p>\n<p>You&#8217;ll additionally simply replace plugins you\u2019ve put in from the WordPress.org Plugin Listing from the command line. Switching to other variations of a plugin, together with older variations, from the command line is easy, too.<\/p>\n<p>In spite of everything, you&#8217;ll set up and replace plugins from different resources the use of WP-CLI. This gained\u2019t paintings for all plugins, as you\u2019ll want to input their URL, and WP-CLI will have to be capable of get right of entry to the ZIP record. Alternatively, if the recordsdata are obtainable, you then must be capable of set up them.<\/p>\n<p>Let\u2019s take a look at one of the crucial most beneficial wp plugin instructions.<\/p>\n<h3 class=\"wp-block-heading\">wp plugin checklist\u00a0<\/h3>\n<p>Use the next command to <strong>see which plugins are put in at the website<\/strong>:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin checklist<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81646\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-plugin-list-again\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list-again.jpg\" data-orig-size=\"1400,750\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-plugin-list-again\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list-again.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list-again.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"548\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list-again.jpg?w=1024\" alt=\"WP-CLI wp plugin list again\" class=\"wp-image-81646\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list-again.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list-again.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list-again.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list-again.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-list-again.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p>This command now not solely lists all of the plugins put in at the website, but additionally presentations their popularity, model quantity, and whether or not an replace is to be had.<\/p>\n<p>You&#8217;ll upload flags to the wp plugin checklist command to <strong>alter what it returns<\/strong>, reminiscent of:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin checklist --update=to be had<\/code><\/pre>\n<p>This command will solely<strong> checklist the plugins that experience an replace to be had<\/strong>.\u00a0<\/p>\n<p>You&#8217;ll see all of the flags to be had for a particular command via including the <strong>\u2013assist<\/strong> flag to it.<\/p>\n<p>For instance:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin checklist --help<\/code><\/pre>\n<h3 class=\"wp-block-heading\">wp plugin replace<\/h3>\n<p>If the website you\u2019re operating on has plugins put in which can be hosted within the WordPress.org Plugin Listing and feature an replace to be had, <strong>they are able to be up to date<\/strong> the use of the next command:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin replace --all<\/code><\/pre>\n<p>You&#8217;ll exclude plugins from the replace via the use of the \u2013exclude flag:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin replace --all --exclude=akismet<\/code><\/pre>\n<p>Except for a plugin will also be helpful when you haven\u2019t examined the most recent model of a plugin and don\u2019t need to set up it.<\/p>\n<p>As you&#8217;ll see beneath, all plugins were up to date, apart from for Akismet, as asked.<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81647\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-plugin-update-exclude\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-exclude.jpg\" data-orig-size=\"1400,626\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-plugin-update-exclude\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-exclude.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-exclude.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"457\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-exclude.jpg?w=1024\" alt=\"WP-CLI wp plugin update exclude\" class=\"wp-image-81647\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-exclude.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-exclude.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-exclude.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-exclude.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-exclude.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<h3 class=\"wp-block-heading\">wp plugin set up<\/h3>\n<p>WP-CLI can be utilized to put in plugins hosted within the WordPress.org Plugin Listing.\u00a0<\/p>\n<p>You&#8217;ll additionally set up plugins via getting into the trail to an area zip record or a URL to a far off zip record.<\/p>\n<p>To<strong> set up a number of plugins from the WordPress.org Plugin Listing<\/strong>, use the next command appended via the identify of the plugin(s):<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin set up <plugin-name\/><\/code><\/pre>\n<p>For instance, to put in BuddyPress and Touch Shape 7, input:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin set up bbpress contact-form-7<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81648\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-plugin-update-specific\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-specific.jpg\" data-orig-size=\"1400,500\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-plugin-update-specific\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-specific.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-specific.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"365\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-specific.jpg?w=1024\" alt=\"WP-CLI-wp-plugin-update-specific\" class=\"wp-image-81648\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-specific.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-specific.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-specific.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-specific.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-plugin-update-specific.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p>When getting into the identify of the plugin, you will have to use the plugin\u2019s slug within the WordPress.org Plugin Listing.\u00a0<\/p>\n<p>To<strong> to find the plugin\u2019s slug<\/strong>, consult with the plugin web page within the WordPress.org Plugin Listing and find the slug within the URL:<\/p>\n<pre class=\"wp-block-code\"><code>Symbol: WP-CLI-slug-example-one<\/code><\/pre>\n<p>Should you\u2019d just like the plugins additionally to be activated after set up, upload the \u2013switch on flag to the top of the command:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin set up bbpress contact-form-7 --activate<\/code><\/pre>\n<p class=\"has-primary-light-background-color has-background\">You&#8217;ll to find extra details about putting in plugins, together with directions on how one can set up plugins now not indexed within the WordPress Plugin Listing, at the wp plugin set up web page of the WordPress Developer Sources website.\u00a0<\/p>\n<h3 class=\"wp-block-heading\">wp plugin deactivate\u00a0<\/h3>\n<p>You&#8217;ll additionally deactivate a number of plugins from the command line.\u00a0<\/p>\n<p>This will also be particularly helpful if the website has grow to be unresponsive because of a plugin-related factor that\u2019s combating you from having access to WP Admin and deactivating the plugin by means of the browser.\u00a0<\/p>\n<p>A few of your choices for deactivating plugins come with deactivating a particular plugin via identify, the use of the <strong>\u2013all <\/strong>flag to deactivate all plugins, and deactivating all plugins apart from for particular ones.<\/p>\n<p>For instance, to <strong>deactivate a particular plugin,<\/strong> use the next command:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin deactivate akismet<\/code><\/pre>\n<p>To<strong> deactivate all plugins<\/strong>, use this command:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin deactivate --all<\/code><\/pre>\n<p>To<strong> deactivate all plugins apart from for particular plugins<\/strong>, use the next command:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin deactivate --all --exclude=akismet,hello-dolly<\/code><\/pre>\n<p class=\"has-primary-light-background-color has-background\">You&#8217;ll view the opposite choices within the wp plugin deactivate command documentation, and for extra plugin-related instructions, view the wp plugin command documentation.\u00a0<\/p>\n<h2 class=\"wp-block-heading\">The right way to organize WordPress posts the use of WP-CLI<\/h2>\n<p>You&#8217;ll additionally paintings with posts and pages the use of WP-CLI.\u00a0<\/p>\n<h3 class=\"wp-block-heading\">wp publish checklist<\/h3>\n<p>First up, you&#8217;ll temporarily <strong>get a listing of all posts on a website<\/strong> the use of the next command:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish checklist<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81650\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-post-list\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-list.jpg\" data-orig-size=\"1400,300\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-post-list\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-list.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-list.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"219\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-list.jpg?w=1024\" alt=\"WP-CLI-wp-post-list\" class=\"wp-image-81650\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-list.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-list.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-list.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-list.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-list.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p>To <strong>see a listing of pages<\/strong>, upload this flag to the command:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish checklist --post_type=web page<\/code><\/pre>\n<p>You&#8217;ll<strong> see a listing of posts and pages<\/strong> the use of this command:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish checklist --post_type=web page, publish<\/code><\/pre>\n<p>The wp publish checklist web page of the WordPress Developer Manual supplies extra details about retrieving lists of posts.<\/p>\n<h3 class=\"wp-block-heading\">wp publish create<\/h3>\n<p>As chances are you&#8217;ll be expecting, the <strong>wp publish create<\/strong> command allows you to create posts and pages with WP-CLI.<\/p>\n<p>Should you frequently arrange new websites that come with the similar set of pages, reminiscent of about, touch, and services and products pages, you&#8217;ll temporarily create the ones pages the use of a unmarried command.\u00a0<\/p>\n<p>For instance, the next command will <strong>create a publish with the identify \u201cCreated The use of WP-CLI.<\/strong>\u201d\u00a0<\/p>\n<pre class=\"wp-block-code\"><code>wp publish create --post_title=\"Created The use of WP-CLI\"<\/code><\/pre>\n<p><strong>To create multiple publish<\/strong>, you&#8217;ll chain a couple of instructions in combination the use of <strong>&amp;&amp;<\/strong>:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish create --post_type=web page --post_status=submit --post_title=\"House\" &amp;&amp; wp publish create --post_type=web page --post_status=submit --post_title=\"About\" &amp;&amp; wp publish create --post_type=web page --post_status=submit --post_title=\"Touch\"<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81651\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-chained\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-chained.jpg\" data-orig-size=\"1400,290\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-chained\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-chained.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-chained.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"212\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-chained.jpg?w=1024\" alt=\"WP-CLI-chained\" class=\"wp-image-81651\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-chained.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-chained.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-chained.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-chained.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-chained.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p>By means of default, new posts are stored as drafts.\u00a0<\/p>\n<p>Alternatively, you&#8217;ll trade this via the use of the <strong>\u2013post_status=<\/strong> flag and including a command, reminiscent of submit, draft, or pending.\u00a0<\/p>\n<p>For instance, to<strong> create a brand new publish with the identify \u201cCreated The use of WP-CLI\u201d with its popularity set to revealed<\/strong>, use the next command:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish create --post_title=\"Created The use of WP-CLI\" --post_status=submit<\/code><\/pre>\n<p>You&#8217;ll additionally upload content material to the publish, assign an writer, set the submit date, and extra via the use of the correct flags.\u00a0<\/p>\n<p class=\"has-primary-light-background-color has-background\">Extra details about the wp publish create command will also be discovered within the WP-CLI documentation.\u00a0<\/p>\n<h3 class=\"wp-block-heading\">wp publish generate<\/h3>\n<p>Should you\u2019re beginning a brand new website and need to populate it with placeholder content material, then the <strong>wp publish generate<\/strong> command will turn out to be useful.\u00a0<\/p>\n<p>This command is deal for growing take a look at content material for a brand new website design or populating a website with hundreds of posts to check efficiency.\u00a0<\/p>\n<p>It creates a couple of posts with a unmarried command.<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81653\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-post-generate\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-generate.jpg\" data-orig-size=\"1400,80\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-post-generate\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-generate.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-generate.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"58\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-generate.jpg?w=1024\" alt=\"WP-CLI-wp-post-generate\" class=\"wp-image-81653\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-generate.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-generate.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-generate.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-generate.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-generate.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p>Like with different instructions, you&#8217;ll upload flags to the wp publish generate command.<\/p>\n<pre class=\"wp-block-code\"><code>wp publish generate --count=10<\/code><\/pre>\n<p>Different flags that can be utilized with wp publish generate come with: <strong>\u2013post_type=<\/strong>, <strong>\u2013post_status=<\/strong>, \u2013<strong>-post_author=<\/strong>, and <strong>\u2013post_date=<\/strong>.\u00a0<\/p>\n<p>For instance:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish generate --count=10 --post_type=web page --post_status=draft --post_author=1 --post_date=\"2025-01-15 12:15:00\"<\/code><\/pre>\n<p>The above command will <strong>create 10 draft pages<\/strong> via the writer with ID 1 with the introduction date and time set to January 15, 2025, 12:15 pm.\u00a0<\/p>\n<p class=\"has-primary-light-background-color has-background\">You&#8217;ll to find out extra concerning the wp publish generate command within the WordPress Developer Manual.<\/p>\n<h3 class=\"wp-block-heading\">wp publish replace<\/h3>\n<p>You&#8217;ll additionally replace or trade current posts the use of WP-CLI.\u00a0<\/p>\n<p>The <strong>wp publish replace<\/strong> command flags assist you to replace the identify, frame, excerpt, submit date, popularity, and writer.<\/p>\n<p>As you&#8217;ll replace a couple of posts immediately, this command turns out to be useful for converting the popularity for a couple of posts from revealed to draft or assigning a special person because the writer.\u00a0<\/p>\n<p>When updating a couple of posts with a unmarried command, you will have to consult with the posts the use of their ID. <strong>To peer the IDs for every publish<\/strong>, use this command:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish checklist<\/code><\/pre>\n<p>After you have the IDs for every publish you wish to have to replace, you&#8217;ll consult with them within the command, separated via an area.<\/p>\n<p>Right here\u2019s an instance of a <strong>wp publish replace command that updates a couple of posts<\/strong>:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish replace 1 125 283 --post_author=2<\/code><\/pre>\n<p>This command <strong>adjustments the writer of the posts<\/strong> with IDs 1, 125, and 283 to the person with ID 2.<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81654\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-post-update\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update.jpg\" data-orig-size=\"1400,140\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-post-update\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"102\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update.jpg?w=1024\" alt=\" WP-CLI-wp-post-update\" class=\"wp-image-81654\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p>(To view the checklist of customers and their IDs, use the wp person checklist command.)<\/p>\n<p>To construct upon that command, when you sought after to <strong>trade the writer of all posts via a particular writer to another writer<\/strong>, it&#8217;s good to use this command:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish replace $(wp publish checklist --author=1 --format=ids) --post_author=2<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81656\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-post-update-list\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg\" data-orig-size=\"1400,290\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-post-update-list\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"212\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=1024\" alt=\"WP-CLI-wp-post-update-list\" class=\"wp-image-81656\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p>This command retrieves a listing of all posts authored via the writer with writer ID 1, then updates or adjustments them in order that the writer is now the only with ID 2.<\/p>\n<p>You must use the similar technique to trade the popularity of all revealed posts to draft via the use of this command:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish replace $(wp publish checklist --post_status=submit --format=ids) --post_status=draft<\/code><\/pre>\n<p class=\"has-primary-light-background-color has-background\">You&#8217;ll see what else is conceivable with this command at the wp publish replace web page of the WP-CLI documentation.<\/p>\n<h3 class=\"wp-block-heading\">wp publish delete<\/h3>\n<p>Deleting posts is any other process that you&#8217;ll perform with WP-CLI.<\/p>\n<p>Once more, the publish IDs are used when <strong>specifying which publish(s) to delete<\/strong>:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish delete 649<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81656\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-post-update-list\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg\" data-orig-size=\"1400,290\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-post-update-list\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"212\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=1024\" alt=\"WP-CLI-wp-post-update-list\" class=\"wp-image-81656\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-update-list.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p><strong>To delete a couple of posts, separate the IDs with an area<\/strong>:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish delete 649 300 150<\/code><\/pre>\n<p>By means of default, posts are moved to the trash. Alternatively, you&#8217;ll use the \u2013power flag to<strong> skip the trash folder and delete the publish<\/strong>:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish delete 648 --force<\/code><\/pre>\n<p>If you wish to <strong>delete all pages<\/strong>, you&#8217;ll use the next command:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish delete $(wp publish checklist --post_type=web page --format=ids)<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81658\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-post-delete\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete.jpg\" data-orig-size=\"1400,138\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-post-delete\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"100\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete.jpg?w=1024\" alt=\"WP-CLI-wp-post-delete\" class=\"wp-image-81658\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p>This command <strong>deletes all posts via a particular person<\/strong>:<\/p>\n<pre class=\"wp-block-code\"><code>wp publish delete $(wp publish checklist --post_author=2 --format=ids)<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81659\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-post-delete-list\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete-list.jpg\" data-orig-size=\"1400,288\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-post-delete-list\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete-list.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete-list.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"210\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete-list.jpg?w=1024\" alt=\"WP-CLI-wp-post-delete-list&#10;\" class=\"wp-image-81659\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete-list.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete-list.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete-list.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete-list.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-post-delete-list.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<h2 class=\"wp-block-heading\">The right way to organize WordPress subject matters with WP-CLI<\/h2>\n<p>The <strong>wp theme<\/strong><em> <\/em>instructions additionally assist you to perform a number of theme-related duties on a website.<\/p>\n<h3 class=\"wp-block-heading\">wp theme checklist<\/h3>\n<p>To temporarily <strong>view a listing of all subject matters at the website, together with their popularity<\/strong>, whether or not an replace is to be had, and the model quantity, input the next command:<\/p>\n<pre class=\"wp-block-code\"><code>wp theme checklist\u00a0<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81661\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-theme-list\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-list.jpg\" data-orig-size=\"1400,436\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-theme-list\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-list.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-list.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"318\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-list.jpg?w=1024\" alt=\"WP-CLI-wp-theme-list \" class=\"wp-image-81661\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-list.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-list.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-list.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-list.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-list.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<h3 class=\"wp-block-heading\">wp theme switch on<\/h3>\n<p>You&#8217;ll <strong>switch on a particular put in theme <\/strong>the use of the next command:<\/p>\n<pre class=\"wp-block-code\"><code>wp theme switch on twentytwenty<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81663\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-theme-activate\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-activate.jpg\" data-orig-size=\"1400,76\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-theme-activate\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-activate.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-activate.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"55\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-activate.jpg?w=1024\" alt=\"WP-CLI-wp-theme-activate\" class=\"wp-image-81663\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-activate.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-activate.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-activate.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-activate.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-activate.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<h3 class=\"wp-block-heading\">wp theme set up<\/h3>\n<p>Like plugins, you&#8217;ll set up subject matters from the command line.\u00a0<\/p>\n<p>If you wish to <strong>set up a theme <\/strong>from the WordPress Theme Listing, you\u2019ll want to use its slug.\u00a0<\/p>\n<p>Like plugins, the slug is within the URL of the theme\u2019s web page within the WordPress Theme Listing.\u00a0<\/p>\n<p>For instance, if you wish to set up the Hi Biz theme, you wish to have to go into its identify as hello-biz in keeping with its slug.<\/p>\n<pre class=\"wp-block-code\"><code>wp theme set up hello-biz<\/code><\/pre>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"81664\" data-permalink=\"https:\/\/wordpress.com\/blog\/2025\/11\/03\/how-to-use-wp-cli\/wp-cli-wp-theme-install\/\" data-orig-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-install.jpg\" data-orig-size=\"1400,256\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"WP-CLI-wp-theme-install\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-install.jpg?w=300\" data-large-file=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-install.jpg?w=1024\" loading=\"lazy\" width=\"1024\" height=\"187\" src=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-install.jpg?w=1024\" alt=\"WP-CLI-wp-theme-install\" class=\"wp-image-81664\" style=\"box-shadow:var(--wp--preset--shadow--natural)\" srcset=\"https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-install.jpg?w=1024 1024w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-install.jpg?w=150 150w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-install.jpg?w=300 300w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-install.jpg?w=768 768w, https:\/\/en-blog.files.wordpress.com\/2025\/10\/wp-cli-wp-theme-install.jpg 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n<p>If you wish to switch on the theme after putting in it, upload the \u2013switch on flag:<\/p>\n<pre class=\"wp-block-code\"><code>wp theme set up hello-biz --activate<\/code><\/pre>\n<h3 class=\"wp-block-heading\">wp theme replace<\/h3>\n<p>A unmarried command can <strong>replace all the subject matters that experience an to be had replace<\/strong>:<\/p>\n<pre class=\"wp-block-code\"><code>wp theme replace --all<\/code><\/pre>\n<p>You&#8217;ll additionally <strong>exclude subject matters from the replace <\/strong>via the use of the \u2013exclude flag:<\/p>\n<pre class=\"wp-block-code\"><code>wp theme replace --all --exclude=twentytwenty<\/code><\/pre>\n<h2 class=\"wp-block-heading\">The right way to organize WordPress feedback with WP-CLI<\/h2>\n<p>But even so, the <strong>wp remark<\/strong> command provides you with a snappy technique to view and delete unsolicited mail feedback at the website, in addition to have interaction with feedback in alternative ways.\u00a0<\/p>\n<p>You&#8217;ll see the feedback on a website via the use of the next command:<\/p>\n<pre class=\"wp-block-code\"><code>wp remark checklist<\/code><\/pre>\n<p>Alternatively, this doesn\u2019t at all times come with unsolicited mail feedback within the checklist. <strong>To peer unsolicited mail feedback,<\/strong> use this command:<\/p>\n<pre class=\"wp-block-code\"><code>wp remark checklist --status=unsolicited mail<\/code><\/pre>\n<p>Then,<strong> to delete the unsolicited mail feedback<\/strong>, use the wp remark delete command with the wp remark checklist command:<\/p>\n<pre class=\"wp-block-code\"><code>wp remark delete $(wp remark checklist --status=unsolicited mail --format=ids)<\/code><\/pre>\n<p>The above are only a few examples of the way you&#8217;ll use WP-CLI to have interaction together with your WordPress website out of doors of the WP Admin interface.\u00a0<\/p>\n<p>Optimistically, this has impressed you to start out interacting with WordPress from the command line.\u00a0<\/p>\n<p class=\"has-primary-light-background-color has-background\">For more info on the use of WP-CLI, take a look at the whole checklist of instructions within the documentation.\u00a0<\/p>\n<h2 class=\"wp-block-heading\">Cool WordPress.com-specific WP-CLI instructions<\/h2>\n<p>WP-CLI is integrated with the WordPress.com Industry and Trade webhosting plans.<\/p>\n<p>Some core instructions aren\u2019t supported, however there are a couple of others which can be unique to WordPress.com websites.<\/p>\n<h3 class=\"wp-block-heading\">1. wp \u2013assist<\/h3>\n<p>To peer precisely <strong>what\u2019s to be had at the WordPress.com Industry and Trade webhosting plans<\/strong>, input the next command:<\/p>\n<pre class=\"wp-block-code\"><code>wp --help<\/code><\/pre>\n<p>Doing so will divulge all the WP-CLI instructions to be had in your website in keeping with your plan.\u00a0<\/p>\n<h3 class=\"wp-block-heading\">2. wp wpcomsh diag<\/h3>\n<p>wpcomsh is a WordPress.com-specific command that comes with a number of helpful subcommands for managing your website.\u00a0<\/p>\n<p>One such command is <strong>wp wpcomsh diag<\/strong>.\u00a0<\/p>\n<p>This command runs website diagnostics checks and outputs the effects, together with the popularity of plugins, accounts with administrator get right of entry to, main points of lively WordPress.com webhosting plans and services and products, important PHP mistakes, and extra.\u00a0<\/p>\n<p>It\u2019s a snappy and simple technique to get an in depth review of a website\u2019s popularity.\u00a0<\/p>\n<h3 class=\"wp-block-heading\">3. wp wpcomsh plugin<\/h3>\n<p>The <strong>wp wpcomsh plugin<\/strong> command allows you to transfer between the use of the WordPress.com-optimized model of a plugin and the usual WordPress.org model.<\/p>\n<p>For instance, when you use the command:<\/p>\n<pre class=\"wp-block-code\"><code>wp wpcomsh plugin use-managed woocommerce<\/code><\/pre>\n<p>The website will get started the use of the WordPress.com-optimized model of the WooCommerce plugin relatively than the model to be had from the WordPress.org Plugin Listing.\u00a0<\/p>\n<p>Chances are you&#8217;ll need to use this command when you\u2019re putting in a brand new website that must be similar to an current website and is the use of a particular model of a plugin.\u00a0<\/p>\n<h3 class=\"wp-block-heading\">4. wp wpcomsh plugin-dance<\/h3>\n<p>If there are mistakes at the website, the next command disables all plugins and allows them separately to test if a particular plugin is inflicting the problem:<\/p>\n<pre class=\"wp-block-code\"><code>wp wpcomsh plugin-dance<\/code><\/pre>\n<p>You&#8217;ll additionally organize Jetpack and WooCommerce by means of WP-CLI.<\/p>\n<p class=\"has-primary-light-background-color has-background\">For extra WordPress.com-specific WP-CLI instructions, take a look at the whole checklist within the WordPress.com Developer documentation.\u00a0<\/p>\n<p>As you&#8217;ll see, having the ability to use WP-CLI is one more reason why WordPress.com isn\u2019t only for webhosting easy blogs; it\u2019s a developer-friendly platform with complicated tooling.<\/p>\n<h2 class=\"wp-block-heading\">Be informed extra about WP-CLI<\/h2>\n<p>There\u2019s much more you&#8217;ll do with WP-CLI, from trying out the entire checklist of instructions to making your individual customized instructions.\u00a0<\/p>\n<p>You&#8217;ll additionally create Bash scripts that comprise a couple of WP-CLI instructions. Then, as an alternative of working every command for my part, you&#8217;ll run all the script immediately.<\/p>\n<p>For instance, it&#8217;s good to create a Bash script known as replace.sh that comes with WP-CLI instructions to replace all plugins and subject matters:<\/p>\n<pre class=\"wp-block-code\"><code>wp plugin replace --all\n\nwp theme replace --all<\/code><\/pre>\n<p>You&#8217;ll then run the script with .\/replace.sh. The script\u2019s contents will execute, which on this case, will replace the topics and plugins at the website.\u00a0<\/p>\n<p class=\"has-primary-light-background-color has-background\">That\u2019s only a pattern of what\u2019s conceivable with WP-CLI. To be told extra, consult with the net manual.\u00a0<\/p>\n<h2 class=\"wp-block-heading\">In a position to start out the use of WP-CLI?<\/h2>\n<p>WP-CLI is a useful gizmo for builders and website homeowners who need extra keep an eye on over their website whilst spending much less time clicking round in WP Admin.<\/p>\n<p>The most important hurdle to getting began is in most cases a psychological one.<\/p>\n<p>Most often, opening your terminal instrument and logging in for the primary time takes only some mins. After that, you\u2019ll have a quicker, extra environment friendly technique to organize your website.<\/p>\n<p>Past its pace and potency, WP-CLI gives different sensible benefits.\u00a0<\/p>\n<p>You&#8217;ll deactivate plugins and subject matters, toggle settings when WP Admin is inaccessible, or even generate dummy content material with a unmarried command.<\/p>\n<p>To take a look at it out, join the Industry or Trade plan on WordPress.com.<\/p>\n<p class=\"has-primary-light-background-color has-background\">Any other great tool to discover is WordPress Studio, a loose open-source desktop app from WordPress.com for development native WordPress websites. Along with letting you spin up websites in seconds, sync with WordPress.com or Pressable, and import any WordPress website to paintings on in the neighborhood, it provides you with a snappy, simple method to check out out WP-CLI in a secure atmosphere.<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>WordPress has a user-friendly graphical interface that makes website control easy.\u00a0 However do you know there\u2019s in a different way to run your website online? Meet WP-CLI, the WordPress Command Line Interface. It does the entirety WP Admin can, plus extra. You&#8217;ll use it to have interaction together with your website during the command line [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4453,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4451","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/wp-json\/wp\/v2\/posts\/4451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/wp-json\/wp\/v2\/comments?post=4451"}],"version-history":[{"count":1,"href":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/wp-json\/wp\/v2\/posts\/4451\/revisions"}],"predecessor-version":[{"id":4452,"href":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/wp-json\/wp\/v2\/posts\/4451\/revisions\/4452"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/wp-json\/wp\/v2\/media\/4453"}],"wp:attachment":[{"href":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/wp-json\/wp\/v2\/media?parent=4451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/wp-json\/wp\/v2\/categories?post=4451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thedigitalsagency.com\/services\/digital-downloadable\/wp-json\/wp\/v2\/tags?post=4451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}