To install WP-CLI on my Windows 7 machine with cygwin I did the following:
First, running the installer as provided by http://wp-cli.org/ doesn’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 >installer.sh
Then add the path to your php installation to the installer.sh. In my case it is located in the wamp directory
find_php() { read -r -d '' AMP_PATHS <<EOB /Applications/MAMP/bin/php5.3/bin/php /Applications/MAMP/bin/php/*/bin/php /Applications/xampp/xamppfiles/bin/php /opt/lampp/bin/php /cygdrive/d/wamp/bin/php/php5.3.8/php.exe EOB
Then follow the instructions and add the path to .wp-cli/bin to $PATH in your .bash_profile
Also export WP_CLI_PHP (the path to your php binary)
export PATH=/home/Ric11/.wp-cli/bin:$PATH export WP_CLI_PHP=/cygdrive/d/wamp/bin/php/php5.3.8/php.exe
To test run:
wp --info