grav: 'bin\grav' is not recognized

I’m trying to install grav on Azure running on Windows.

git clone https://github.com/getgrav/grav.git bin\grav install

I tried with full path too.

The output is 'bin\grav' is not recognized as an internal or external command, operable program or batch file.

I’m using PHP 5.6.10

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

bin\grav is a PHP script which on Windows will not automatically be found and executed from the cmd shell. I run it on my WAMP installation by calling the PHP interpreter explicitly like this:

C:\>c:\wamp\bin\php\php5.6.10\php bin\grav install

I can confirm that bin/grav will not work on Windows 10 from either Git Bash, Node.js Command Prompt or Powershell, if your PHP executable is in your path. You will still need to run php bin/grav in that case, which works perfectly. 👍

Don’t take my example verbatim. You have to adjust it so you execute the PHP interpreter and its location depends on your installation. Check that the PHP interpreter is run correctly using this command and make sure your path is set correctly:

php --version

or

c:\my-path-to-php\php --version

Glad I came across this thread. I’m running a 64 bit version of WAMP and this worked for me:

c:\wamp64\bin\php\php7.0.10\php bin/grav install

There was an error, same as @abumalick got:

'eval' is not recognized as an internal or external command,
operable program or batch file.

but everything seems to be working fine.

Should this be put on the Troubleshooting page of Grav Learn?