“Could not open input file” error even when WP-CLI is in the path
I’m developing WordPress locally with XAMPP, and currently trying to install the WP-CLI tools as described here using Cygwin.
wp, made it executable and moved it to the
wp gives me the error:
Could not open input file: /cygdrive/b/Users/User/Desktop/XAMPP/php/wp
On the other hand, doing
./wp from the directory that the file is located in runs the program without issue.
This is despite the fact that both
/cygdrive/b/Users/User/Desktop/XAMPP/php/wp are in my PATH, via Cygwin’s
This is confirmed by doing
What could be causing this problem?