{"id":852,"date":"2012-10-04T14:43:32","date_gmt":"2012-10-04T14:43:32","guid":{"rendered":"https:\/\/2012.philly.wordcamp.org\/?post_type=wcb_session&#038;p=852"},"modified":"2012-11-21T05:28:50","modified_gmt":"2012-11-21T10:28:50","slug":"wordpress-on-the-cli-interact-explore-automate","status":"publish","type":"wcb_session","link":"https:\/\/philadelphia.wordcamp.org\/2012\/session\/wordpress-on-the-cli-interact-explore-automate\/","title":{"rendered":"WordPress on the CLI &#8211; Interact, Explore, Automate."},"content":{"rendered":"<p>Like many environments, WordPress can be a bit cumbersome to work with\u00a0when you\u2019re locked into using the GUI that is provided, when there is\u00a0so much more that can be done on via a Command Line Interface (CLI.)\u00a0To truly unlock the full power of the WordPress API, having a sense\u00a0for how to work with it via CLI is the key to success.<\/p>\n<p>I will provide guidance on: how to create CLI scripts in PHP, using a\u00a0bare-bones example to start and then incorporating the wp-cli\u00a0framework; using Perl\/Shell Scripts to manage and harness WordPress\u00a0CLI scripts; how to explore and experiment with the WordPress API\u00a0through ctags and the WordPress shell. I will also demonstrate some\u00a0higher-level issues with working with WordPress on the command line.\u00a0I\u2019ll cover how you can use the skills developed to work with giant\u00a0data files, and discuss the caveats of importing and exporting large\u00a0data sets.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Like many environments, WordPress can be a bit cumbersome to work with\u00a0when you\u2019re locked into using the GUI that is provided, when there is\u00a0so much more that can be done on via a Command Line Interface (CLI.)\u00a0To truly unlock the&#8230; <a href=\"\/speakers\/\">More Speakers<\/a><\/p>\n","protected":false},"author":11155,"featured_media":0,"template":"","meta":{"_wcpt_session_time":0,"_wcpt_session_duration":3000,"_wcpt_session_type":"","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[849],"footnotes":""},"session_track":[5041],"session_category":[],"class_list":["post-852","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-developer"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pheWQ2-dK","session_date_time":{"date":"","time":""},"session_speakers":[{"id":"849","slug":"ben-doherty","name":"Ben Doherty","link":"https:\/\/philadelphia.wordcamp.org\/2012\/speaker\/ben-doherty\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/philadelphia.wordcamp.org\/2012\/wp-json\/wp\/v2\/sessions\/852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/philadelphia.wordcamp.org\/2012\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/philadelphia.wordcamp.org\/2012\/wp-json\/wp\/v2\/types\/wcb_session"}],"author":[{"embeddable":true,"href":"https:\/\/philadelphia.wordcamp.org\/2012\/wp-json\/wp\/v2\/users\/11155"}],"version-history":[{"count":11,"href":"https:\/\/philadelphia.wordcamp.org\/2012\/wp-json\/wp\/v2\/sessions\/852\/revisions"}],"predecessor-version":[{"id":2050,"href":"https:\/\/philadelphia.wordcamp.org\/2012\/wp-json\/wp\/v2\/sessions\/852\/revisions\/2050"}],"speakers":[{"embeddable":true,"href":"https:\/\/philadelphia.wordcamp.org\/2012\/wp-json\/wp\/v2\/speakers\/849"}],"wp:attachment":[{"href":"https:\/\/philadelphia.wordcamp.org\/2012\/wp-json\/wp\/v2\/media?parent=852"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/philadelphia.wordcamp.org\/2012\/wp-json\/wp\/v2\/session_track?post=852"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/philadelphia.wordcamp.org\/2012\/wp-json\/wp\/v2\/session_category?post=852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}