Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update composer dependencies from command line

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.

like image 407
applecrusher Avatar asked Jun 18 '13 14:06

applecrusher


People also ask

How do I update composer json?

To update your packages json file is. Run composer update (on your local machine) to update the required packages and re-generate a composer. lock file. Commit the updated composer.

How do I update my composer in Linux?

To change to version one, run the self-update command and pass in the --1 flag. This will change the composer to version one, and now you can install your dependencies. Once you have installed your dependencies, you can now run the same command and pass in --2 as the flag, which will switch back to composer version 2.

How do I update local composer?

This is the easiest way to get Composer set up on your machine. Download and run Composer-Setup.exe. It will install the latest Composer version and set up your PATH so that you can call composer from any directory in your command line. Note: Close your current terminal.


1 Answers

In CMD:

php C:\ProgramData\ComposerSetup\bin\composer.phar self-update
like image 169
jfraber Avatar answered Sep 27 '22 21:09

jfraber