{"id":171,"date":"2013-09-07T10:03:52","date_gmt":"2013-09-07T08:03:52","guid":{"rendered":"http:\/\/hesmid.nl\/test\/?p=171"},"modified":"2013-09-07T10:07:22","modified_gmt":"2013-09-07T08:07:22","slug":"installing-wp-cli-on-cygwin","status":"publish","type":"post","link":"https:\/\/hesmid.nl\/test\/installing-wp-cli-on-cygwin\/","title":{"rendered":"Installing WP-CLI on cygwin"},"content":{"rendered":"<p>To install WP-CLI on my Windows 7 machine with cygwin I did the following:<\/p>\n<p>First, running the installer as provided by\u00a0<a href=\"http:\/\/wp-cli.org\/\">http:\/\/wp-cli.org\/<\/a>\u00a0doesn&#8217;t work, since the installer cannot find php.<\/p>\n<p>So instead run:<\/p>\n<pre><code>curl https:\/\/raw.github.com\/wp-cli\/wp-cli.github.com\/master\/installer.sh &gt;installer.sh<\/code><\/pre>\n<p><span style=\"font-family: monospace, serif; font-size: 14px; line-height: 1.5;\"><!--more-->Then add the path to your php installation to the installer.sh. In my case it is located in the wamp directory<\/span><\/p>\n<pre>find_php() {\r\n    read -r -d '' AMP_PATHS &lt;&lt;EOB\r\n\/Applications\/MAMP\/bin\/php5.3\/bin\/php\r\n\/Applications\/MAMP\/bin\/php\/*\/bin\/php\r\n\/Applications\/xampp\/xamppfiles\/bin\/php\r\n\/opt\/lampp\/bin\/php\r\n<strong>\/cygdrive\/d\/wamp\/bin\/php\/php5.3.8\/php.exe<\/strong>\r\nEOB<\/pre>\n<p>Then follow the instructions and add the path to .wp-cli\/bin to $PATH in your .bash_profile<br \/>\n<span style=\"line-height: 1.5;\">Also export WP_CLI_PHP \u00a0(the path to your php binary)<\/span><\/p>\n<pre>export PATH=\/home\/Ric11\/.wp-cli\/bin:$PATH\r\nexport WP_CLI_PHP=\/cygdrive\/d\/wamp\/bin\/php\/php5.3.8\/php.exe<\/pre>\n<p>To test run:<\/p>\n<pre>wp --info<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To install WP-CLI on my Windows 7 machine with cygwin I did the following: First, running the installer as provided by\u00a0http:\/\/wp-cli.org\/\u00a0doesn&#8217;t work, since the installer cannot find php. So instead run: curl https:\/\/raw.github.com\/wp-cli\/wp-cli.github.com\/master\/installer.sh &gt;installer.sh<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17],"tags":[29],"acf":[],"_links":{"self":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/171"}],"collection":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/comments?post=171"}],"version-history":[{"count":4,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/171\/revisions"}],"predecessor-version":[{"id":176,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/171\/revisions\/176"}],"wp:attachment":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/media?parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/categories?post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/tags?post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}