{"id":452,"date":"2017-06-02T09:18:48","date_gmt":"2017-06-02T09:18:48","guid":{"rendered":"https:\/\/www.fastcomet.com\/blog\/?p=452"},"modified":"2022-06-10T06:40:58","modified_gmt":"2022-06-10T06:40:58","slug":"wp-cli-1-2-0-now-available","status":"publish","type":"post","link":"https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available","title":{"rendered":"Harness the Power of WP-CLI v1.2.0"},"content":{"rendered":"\n<p class=\"has-drop-cap\">WP-CLI 1.2.0 is now available, several months after 1.1.0 was released. After 325 merged pull requests, WP-CLI v1.2.0 comes to theaters chock full of enhancements, bug fixes\u2026 and a bootstrap refactor. This is the second release since the project was brought under the official WordPress umbrella and the first major release since hiring Alain Schlesser as a part-time co-maintainer. Let&#8217;s see what&#8217;s new:<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Commands Abstracted to Distinct Packages<\/h2>\n\n\n\n<p>WP-CLI 1.2.0 was released with a major overhaul that removes bundled commands from the core in favor of maintaining them in distinct packages. The main <code>wp-cli\/wp-cli<\/code> repository now only contains the framework itself. All of the bundled commands can be found in separate repositories. For instance, the <code>wp cache *<\/code> series of commands are now located at <a href=\"https:\/\/github.com\/wp-cli\/cache-command\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">github.com\/wp-cli\/cache-command<\/a>.<\/p>\n\n\n\n<p>Splitting WP-CLI\u2019s internal commands into separate packages moves the project closer to the goal of having official maintainers for the commands in the future. This new structure for the framework and its commands provides several benefits, as outlined by co-maintainer Daniel Bachhuber in the release post:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>While developing, the tests are only run for the specific component you\u2019re working on, making the feedback loop much shorter.<\/li><li>Individual command packages can be controlled and set up independently, opening up the opportunity for better collaboration.<\/li><li>Hotfixes and intermediary releases can be published for individual commands, that can then be updated through the built-in package manager.<\/li><li>Tests run really fast now.<\/li><li>When you submit a pull request, you don\u2019t have to wait two hours for the tests to run.<\/li><li>The investments in package abstraction and the bootstrap process are a part of our larger effort to improve the contribution workflow.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">New Commands<\/h2>\n\n\n\n<p>WP-CLI 1.2.0 release also includes three new commands, along with dozens of command improvements and framework enhancements.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>wp config<\/code> get lists constants and globals defined in wp-config.php<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>$ wp config get --fields=key,value<\/code> <code> +--------------------+-----------------+<\/code> <code> | key | value |<\/code> <code> +--------------------+-----------------+<\/code> <code> | table_prefix | wp_ |<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"text-align: justify;\"><code>wp config<\/code> path gets the path to<code> wp-config.php<\/code><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\"><code># Edit wp-config.php in your editor.<\/code> <code> $ vim $(wp config path)<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"text-align: justify;\"><code>wp db size<\/code> gets the size of the database and its tables<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>$ wp db size --tables<\/code> <code> +-----------------------+--------+<\/code> <code> | Name | Size |<\/code> <code> +-----------------------+--------+<\/code> <code> | wp_users | 64 KB |<\/code> <code> | wp_usermeta | 48 KB |<\/code> <code> | wp_posts | 4 MB |<\/code> <code> | wp_comments | 2 MB |<\/code> <code> | wp_links | 32 KB |<\/code> <code> | wp_options | 1 MB |<\/code> <code> | wp_postmeta | 8 MB |<\/code> <code> | wp_terms | 416 KB |<\/code> <code> | wp_term_taxonomy | 336 KB |<\/code> <code> | wp_term_relationships | 736 KB |<\/code> <code> | wp_termmeta | 48 KB |<\/code> <code> | wp_commentmeta | 2 MB |<\/code> <code> +-----------------------+--------+<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">WP-CLI Has a New Logo<\/h3>\n\n\n\n<p>The new logo is designed by Chris Wallace and his team at Lift UX. Undoubtedly, having an official logo opens up the possibility for WP-CLI swag that we all crave for.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">FastComet, WP-CLI 1.2.0 Release, and You<\/h3>\n\n\n\n<p>We have already updated WP-CLI to version 1.2.0 on all our servers. If you haven\u2019t already tried WP-CLI we urge you to give it a go. And if you\u2019d like to try the fastest WordPress hosting and have access to great tools like WP-CLI, try our managed WordPress cloud hosting.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WP-CLI 1.2.0 is now available, several months after 1.1.0 was released. After 325 merged pull requests, WP-CLI v1.2.0 comes to theaters chock full of enhancements, bug fixes\u2026 and a bootstrap refactor. This is the second release since the project was brought under the official WordPress umbrella and the first major release since hiring Alain Schlesser [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":453,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4724,256],"tags":[108,42,44],"class_list":["post-452","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webdev","category-wordpress","tag-cli","tag-opensource","tag-wordpress"],"featured_image_src":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2017\/06\/WP-CLI.png","author_info":{"display_name":"Elena","author_link":"https:\/\/www.fastcomet.com\/blog\/author\/elenatileva"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Harness the Power of WP-CLI v1.2.0 | FastComet<\/title>\n<meta name=\"description\" content=\"Meet WP-CLI v.1.2.0 and all of the new features, enhancements, bug fixes, and a bootstrap refactor and much more. ? Learn from our takeaways!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Harness the Power of WP-CLI v1.2.0 | FastComet\" \/>\n<meta property=\"og:description\" content=\"Meet WP-CLI v.1.2.0 and all of the new features, enhancements, bug fixes, and a bootstrap refactor and much more. ? Learn from our takeaways!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available\" \/>\n<meta property=\"og:site_name\" content=\"FastComet Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-06-02T09:18:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-10T06:40:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2017\/06\/WP-CLI.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Elena\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ElenaTileva\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elena\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Harness the Power of WP-CLI v1.2.0 | FastComet","description":"Meet WP-CLI v.1.2.0 and all of the new features, enhancements, bug fixes, and a bootstrap refactor and much more. ? Learn from our takeaways!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available","og_locale":"en_US","og_type":"article","og_title":"Harness the Power of WP-CLI v1.2.0 | FastComet","og_description":"Meet WP-CLI v.1.2.0 and all of the new features, enhancements, bug fixes, and a bootstrap refactor and much more. ? Learn from our takeaways!","og_url":"https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available","og_site_name":"FastComet Blog","article_published_time":"2017-06-02T09:18:48+00:00","article_modified_time":"2022-06-10T06:40:58+00:00","og_image":[{"width":1024,"height":512,"url":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2017\/06\/WP-CLI.png","type":"image\/png"}],"author":"Elena","twitter_card":"summary_large_image","twitter_creator":"@ElenaTileva","twitter_misc":{"Written by":"Elena","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available","url":"https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available","name":"Harness the Power of WP-CLI v1.2.0 | FastComet","isPartOf":{"@id":"https:\/\/www.fastcomet.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available#primaryimage"},"image":{"@id":"https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available#primaryimage"},"thumbnailUrl":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2017\/06\/WP-CLI.png","datePublished":"2017-06-02T09:18:48+00:00","dateModified":"2022-06-10T06:40:58+00:00","author":{"@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/9ef9240ced73eac50f0efa4cfeec79fb"},"description":"Meet WP-CLI v.1.2.0 and all of the new features, enhancements, bug fixes, and a bootstrap refactor and much more. ? Learn from our takeaways!","breadcrumb":{"@id":"https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available#primaryimage","url":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2017\/06\/WP-CLI.png","contentUrl":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2017\/06\/WP-CLI.png","width":1024,"height":512},{"@type":"BreadcrumbList","@id":"https:\/\/www.fastcomet.com\/blog\/wp-cli-1-2-0-now-available#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fastcomet.com\/blog"},{"@type":"ListItem","position":2,"name":"Harness the Power of WP-CLI v1.2.0"}]},{"@type":"WebSite","@id":"https:\/\/www.fastcomet.com\/blog\/#website","url":"https:\/\/www.fastcomet.com\/blog\/","name":"FastComet Blog","description":"FastComet Web Hosting Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fastcomet.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/9ef9240ced73eac50f0efa4cfeec79fb","name":"Elena","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b8cfccf4061aab9b008ad0468984108f59623016631a3aed76c6e837ce2fc05?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b8cfccf4061aab9b008ad0468984108f59623016631a3aed76c6e837ce2fc05?s=96&d=mm&r=g","caption":"Elena"},"description":"Elena oversees all Marketing, Product Management and Community efforts for FastComet and is in charge of telling the brand's story. Always pitching, she\u2019ll share the FastComet vision with anyone who\u2019ll listen. Elena helps our customers make the most of their web sites' and focuses on our inbound marketing efforts; everything from developing new online growth strategies, content creation, technical SEO, and outreach within the FastComet community. Her background includes Sales and Customer Relationship development, as well as Online Marketing.","sameAs":["https:\/\/www.fastcomet.com","https:\/\/x.com\/ElenaTileva"],"url":"https:\/\/www.fastcomet.com\/blog\/author\/elenatileva"}]}},"_links":{"self":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts\/452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/comments?post=452"}],"version-history":[{"count":5,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts\/452\/revisions"}],"predecessor-version":[{"id":3748,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts\/452\/revisions\/3748"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/media\/453"}],"wp:attachment":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/media?parent=452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/categories?post=452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/tags?post=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}