Update composer dependencies from command line

applecrusher picture applecrusher · Jun 18, 2013 · Viewed 53.2k times · Source

I am currently working with symfony2 and I want to launch to download the libraries I need. I know the command in linux is "$ ./composer.phar update --dev" however when I run this in windows it prompts whether I should open the file with the windows explorer or not. I currently have composer.phar installed on windows but I am having trouble launching it. How would I be able to update my symfony2 folder with the dependencies I need. Thank you.

Answer

jfraber picture jfraber · Feb 27, 2015

In CMD:

php C:\ProgramData\ComposerSetup\bin\composer.phar self-update