Magento – “Could not open input file” error while running php command in windows

climagento2windows

I have installed Magento 2.2.5 on my localhost windows system. I use the wamp server.
I am unable to run any PHP command and getting the error Could not open input file: C:\wamp64\www\magento2

I got this

C:\wamp64\bin\php\php7.0.32>php  C:\wamp64\www\magento2 cache:flush
Could not open input file: C:\wamp64\www\magento2

I gave all permissions on the magento2 folder using system property still it doesn't work.
Please suggest me a way out.

Best Answer

Finally, It works for me. I just add my PHP installation file path in the system user variable path. Closing and opening cmd and all of the commands work perfectly. My PHP installation path is C:\wamp64\bin\php\php7.0.32.

Related Topic