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

1 Answer 1

0

Follow

  1. Set path in PATH environment variable (Recommended)
  2. You can do this as well.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.