Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

symfony - 'bin' is not recognized as an internal or external command

I am trying to run a symfony command via the command line. On writing the below command

bin/console doctrine:database:create

it outputs an error

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

php is installed on my machine and configured in environment variables but I am getting that error. Please what could be wrong?

like image 530
Float Avatar asked Dec 09 '25 17:12

Float


1 Answers

This is a Linux like command. Obviously you are coming from Windows system:

php bin\console doctrine:database:create

Pro tip: you can shortcut commands as long as the shortcut is unique:

php bin\console doc:dat:cr

Make sure you cd to the app's directory before running the command too.

like image 165
emix Avatar answered Dec 11 '25 07:12

emix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!