I recently installed WP-CLI on windows with the instructions below. However when I type
wp shell I get en error: The system cannot find the path specified.
One solution on github says:
Psysh is not bundled in wp-cli.phar, but you should be able to include it, like so:
wget psysh.org/psysh -O psysh.phar php wp-cli.phar --require=psysh.phar shell`
However, that also produces an error:
'wget' is not recognized as an internal or external command, operable program or batch file.
Please help! I'm too far down the rabbit hole. I wanted to use WP CLI to make my life easier!
Installation instructions followed (from http://wp-cli.org/docs/installing/):
Installing on Windows# Install via composer as described above or use the following method.
Make sure you have php installed and in your path so you can execute it globally.
Download wp-cli.phar manually and save it to a folder, for example c:\wp-cli
Create a file named wp.bat in c:\wp-cli with the following contents:
@ECHO OFF php "c:/wp-cli/wp-cli.phar" %* Add c:\wp-cli to your path:
setx path "%path%;c:\wp-cli" You can now use WP-CLI from anywhere in Windows command line.