{"id":2867,"date":"2026-02-11T13:13:10","date_gmt":"2026-02-11T13:13:10","guid":{"rendered":"https:\/\/kb.shortpixel.com\/?post_type=docs&#038;p=2867"},"modified":"2026-02-11T13:15:08","modified_gmt":"2026-02-11T13:15:08","password":"","slug":"wp-cli-support-for-regenerate-thumbnails-advanced","status":"publish","type":"docs","link":"https:\/\/kb.shortpixel.com\/knowledge-base\/article\/wp-cli-support-for-regenerate-thumbnails-advanced\/","title":{"rendered":"WP-CLI Support for reGenerate Thumbnails Advanced"},"content":{"rendered":"\n<p>RTA includes WP-CLI support, which allows you to manage thumbnail regeneration directly from the command line. <\/p>\n\n\n\n<p>You can view all available commands by running <code>wp help rta<\/code><\/p>\n\n\n\n<p>Currently, RTA provides three WP-CLI commands: <code>wp rta <strong>regenerate <\/strong>\/ <strong>clear <\/strong>\/ <strong>status<\/strong><\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Regenerate<\/h2>\n\n\n\n<p>Regenerates image thumbnails based on the settings configured in your WordPress admin area > Tools > Regenerate Thumbnails.<\/p>\n\n\n\n<p><code>wp rta regenerate [--onlyFeatured] [--startDate=] [--endDate=]<\/code><\/p>\n\n\n\n<p><strong>Options<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>--onlyFeatured\nRegenerates thumbnails only for featured images.\n\n--startDate=&lt;date&gt;\nProcesses images uploaded on or after this date (inclusive).\nThe date must be compatible with strtotime, for example 2024-01-31.\n\n--endDate=&lt;date&gt;\nProcesses images uploaded on or before this date (inclusive).\nThe date must be compatible with strtotime, for example 2024-01-31.<\/code><\/pre>\n\n\n\n<p><strong>Examples<\/strong><\/p>\n\n\n\n<p>Regenerate thumbnails for all images using the current plugin settings:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp rta regenerate\n<\/code><\/pre>\n\n\n\n<p>Regenerate thumbnails only for featured images:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp rta regenerate --onlyFeatured\n<\/code><\/pre>\n\n\n\n<p>Regenerate thumbnails for images uploaded after a specific date:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp rta regenerate --startDate=\"2024-02-01\"\n<\/code><\/pre>\n\n\n\n<p>Regenerate thumbnails for images uploaded before a specific date:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp rta regenerate --endDate=\"2024-01-31\"\n<\/code><\/pre>\n\n\n\n<p>Regenerate thumbnails for featured images uploaded within a specific date range:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp rta regenerate --onlyFeatured --startDate=\"2024-01-01\" --endDate=\"2024-01-31\"\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Clear<\/h2>\n\n\n\n<p><code>wp rta clear<\/code><\/p>\n\n\n\n<p>Clears the current processing queue and stops any ongoing regeneration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Status<\/h2>\n\n\n\n<p><code>wp rta status<\/code><\/p>\n\n\n\n<p>Displays the status of the current thumbnail regeneration process, if one is running.<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>RTA includes WP-CLI support, which allows you to manage thumbnail regeneration directly from the command line. You can view all available commands by running wp help rta Currently, RTA provides three WP-CLI commands: wp rta regenerate \/ clear \/ status Regenerate Regenerates image thumbnails based on the settings configured in your WordPress admin area > [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[40,59],"glossaries":[],"doc_tag":[],"class_list":["post-2867","docs","type-docs","status-publish","hentry","doc_category-regenerate-thumbnails-advanced","doc_category-wordpress-plugins"],"blocksy_meta":[],"year_month":"2026-05","word_count":223,"total_views":"49","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Andrei Alba","author_nicename":"andrei-alba","author_url":"https:\/\/kb.shortpixel.com\/author\/andrei-alba\/"},"doc_category_info":[{"term_name":"reGenerate Thumbnails Advanced","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/regenerate-thumbnails-advanced\/"},{"term_name":"WordPress Plugins","term_url":"https:\/\/kb.shortpixel.com\/knowledge-base\/category\/wordpress-plugins\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/2867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/comments?post=2867"}],"version-history":[{"count":8,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/2867\/revisions"}],"predecessor-version":[{"id":2875,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/docs\/2867\/revisions\/2875"}],"wp:attachment":[{"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/media?parent=2867"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_category?post=2867"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/glossaries?post=2867"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/kb.shortpixel.com\/wp-json\/wp\/v2\/doc_tag?post=2867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}