{"id":1011,"date":"2016-01-25T20:51:34","date_gmt":"2016-01-25T11:51:34","guid":{"rendered":"http:\/\/n8finch.com\/?p=1011"},"modified":"2016-08-25T10:59:01","modified_gmt":"2016-08-25T01:59:01","slug":"wrote-post-command-line-wp-cli","status":"publish","type":"post","link":"https:\/\/n8finch2024.local\/wrote-post-command-line-wp-cli\/","title":{"rendered":"I Wrote This Post in the Command Line With WP-CLI"},"content":{"rendered":"

I just found a new toy, and it is a good one.<\/p>\n

I have loved using the command line for version control, and now I have a new tool in the arsenal.<\/p>\n

Let me introduce you to WP-CLI…<\/p>\n

Ok, so, it’s probably not the best tool to use for writing blog posts, but it does so much more, and growing.<\/p>\n

SiteGround<\/strong><\/a>, my awesome hosing provider, actually had this gem installed on it ready to go. They provide a “getting started” type tutorial for WP-CLI, which you can find here<\/a><\/strong>.<\/p>\n

The complete and updated WP-CLI documentation is here<\/a><\/strong>.<\/p>\n

What will I be using WP-CLI for?<\/h2>\n

That’s a great question!<\/p>\n

Currently, I’ll probably use it as my go to for updating plugins, themes and core.<\/p>\n

Eventually, I’d like to be able to use it for database backups and even site migration. I’ll have to figure this out (or get someone to show me how), but needless to say, I’m pretty stoked.<\/p>\n

Another aspect I’m excited about with WP-CLI is the eventual integration with the WP-REST-API<\/a> project that will be extending the CLI to include more commands.<\/p>\n

Yeah, I’m excited. Thanks to Justin for making me use it!<\/p>\n

There’s plenty of learning curve, don’t get me wrong. I also need to learn how to write some scripts to go with it all. But that will come with time.<\/p>\n

Today, I used it to update a plugin and some user data.<\/p>\n

So fast. So easy.<\/p>\n

In the future, much more complicated tasks and queries. But for today, I’m feeling pretty accomplished. I’ll be digging through the (not-too-extensive) documentation to see what else I can do with this tool.<\/p>\n

It’s more fun than anything,\u00a0a beautiful thing.<\/p>\n

No clicks.<\/p>\n

No page-loads.<\/p>\n

Just data, quick and easy.<\/p>\n

I think I’m in love… But not like that!<\/p>\n

###<\/p>\n

Cheers,<\/p>\n

Nate<\/p>\n","protected":false},"excerpt":{"rendered":"

I just found a new toy, and it is a good one. I have loved using the command line for version control, and now I have a new tool in the arsenal. Let me introduce you to WP-CLI…<\/p>\n","protected":false},"author":1,"featured_media":1013,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[9,1,8],"tags":[],"yoast_head":"\nI Wrote This Post in the Command Line With WP-CLI | Nate Finch<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I Wrote This Post in the Command Line With WP-CLI | Nate Finch\" \/>\n<meta property=\"og:description\" content=\"I just found a new toy, and it is a good one. I have loved using the command line for version control, and now I have a new tool in the arsenal. Let me introduce you to WP-CLI…\" \/>\n<meta property=\"og:url\" content=\"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/\" \/>\n<meta property=\"og:site_name\" content=\"Nate Finch\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-25T11:51:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-08-25T01:59:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/n8finch-site.site.strattic.io\/wp-content\/uploads\/2020\/11\/wp-cli_k4g70z.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"650\" \/>\n\t<meta property=\"og:image:height\" content=\"326\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nate\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@n8finch\" \/>\n<meta name=\"twitter:site\" content=\"@n8finch\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nate\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/\"},\"author\":{\"name\":\"Nate\",\"@id\":\"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce\"},\"headline\":\"I Wrote This Post in the Command Line With WP-CLI\",\"datePublished\":\"2016-01-25T11:51:34+00:00\",\"dateModified\":\"2016-08-25T01:59:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/\"},\"wordCount\":326,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce\"},\"articleSection\":[\"20 Hours Ahead\",\"Blog\",\"Web Development\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/\",\"url\":\"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/\",\"name\":\"I Wrote This Post in the Command Line With WP-CLI | Nate Finch\",\"isPartOf\":{\"@id\":\"https:\/\/n8finch.local\/#website\"},\"datePublished\":\"2016-01-25T11:51:34+00:00\",\"dateModified\":\"2016-08-25T01:59:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/n8finch.local\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"I Wrote This Post in the Command Line With WP-CLI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/n8finch.local\/#website\",\"url\":\"https:\/\/n8finch.local\/\",\"name\":\"Nate Finch\",\"description\":\"All the things, keeping it clever...🤓\",\"publisher\":{\"@id\":\"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/n8finch.local\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce\",\"name\":\"Nate\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/n8finch.local\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/n8finch2024.local\/wp-content\/uploads\/2020\/11\/nate-pic_ykd6mq.jpg\",\"contentUrl\":\"https:\/\/n8finch2024.local\/wp-content\/uploads\/2020\/11\/nate-pic_ykd6mq.jpg\",\"width\":796,\"height\":792,\"caption\":\"Nate\"},\"logo\":{\"@id\":\"https:\/\/n8finch.local\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"I Wrote This Post in the Command Line With WP-CLI | Nate Finch","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:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/","og_locale":"en_US","og_type":"article","og_title":"I Wrote This Post in the Command Line With WP-CLI | Nate Finch","og_description":"I just found a new toy, and it is a good one. I have loved using the command line for version control, and now I have a new tool in the arsenal. Let me introduce you to WP-CLI…","og_url":"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/","og_site_name":"Nate Finch","article_published_time":"2016-01-25T11:51:34+00:00","article_modified_time":"2016-08-25T01:59:01+00:00","og_image":[{"width":650,"height":326,"url":"https:\/\/n8finch-site.site.strattic.io\/wp-content\/uploads\/2020\/11\/wp-cli_k4g70z.jpg","type":"image\/jpeg"}],"author":"Nate","twitter_card":"summary_large_image","twitter_creator":"@n8finch","twitter_site":"@n8finch","twitter_misc":{"Written by":"Nate","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/#article","isPartOf":{"@id":"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/"},"author":{"name":"Nate","@id":"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce"},"headline":"I Wrote This Post in the Command Line With WP-CLI","datePublished":"2016-01-25T11:51:34+00:00","dateModified":"2016-08-25T01:59:01+00:00","mainEntityOfPage":{"@id":"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/"},"wordCount":326,"commentCount":0,"publisher":{"@id":"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce"},"articleSection":["20 Hours Ahead","Blog","Web Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/","url":"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/","name":"I Wrote This Post in the Command Line With WP-CLI | Nate Finch","isPartOf":{"@id":"https:\/\/n8finch.local\/#website"},"datePublished":"2016-01-25T11:51:34+00:00","dateModified":"2016-08-25T01:59:01+00:00","breadcrumb":{"@id":"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/n8finch-site.site.strattic.io\/wrote-post-command-line-wp-cli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/n8finch.local\/"},{"@type":"ListItem","position":2,"name":"I Wrote This Post in the Command Line With WP-CLI"}]},{"@type":"WebSite","@id":"https:\/\/n8finch.local\/#website","url":"https:\/\/n8finch.local\/","name":"Nate Finch","description":"All the things, keeping it clever...🤓","publisher":{"@id":"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/n8finch.local\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/n8finch.local\/#\/schema\/person\/619068414583ca3c43bb135af49a47ce","name":"Nate","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/n8finch.local\/#\/schema\/person\/image\/","url":"https:\/\/n8finch2024.local\/wp-content\/uploads\/2020\/11\/nate-pic_ykd6mq.jpg","contentUrl":"https:\/\/n8finch2024.local\/wp-content\/uploads\/2020\/11\/nate-pic_ykd6mq.jpg","width":796,"height":792,"caption":"Nate"},"logo":{"@id":"https:\/\/n8finch.local\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/posts\/1011"}],"collection":[{"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/comments?post=1011"}],"version-history":[{"count":5,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/posts\/1011\/revisions"}],"predecessor-version":[{"id":1133,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/posts\/1011\/revisions\/1133"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/media\/1013"}],"wp:attachment":[{"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/media?parent=1011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/categories?post=1011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/n8finch2024.local\/wp-json\/wp\/v2\/tags?post=1011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}