2

So i'm trying to setup WP-CLI. I'm working with visual studio code and i installed Git Bash as terminal.

Following WP-CLI installation guide i need to download a file:

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

Works fine and the download seems completed

Second step is to check if it works:

php wp-cli.phar --info

Returns an error:

bash: php: command not found

Looks like Git Bash can't access the PHP Path from Wamp. That's the conclusion i get from this post PHP Command, not found

I can't find a solution to fix this problem, if you guys got one i'd be happy to read it

Biscuite
  • 85
  • 9

1 Answers1

0

Follow

  1. Set path in PATH environment variable (Recommended)
  2. You can do this as well.