Update multiple dependencies with Bower

kaiser picture kaiser · Aug 7, 2013 · Viewed 42.7k times · Source

I listed (and/or installed) several dependencies with Bower inside the bower.json file and/or with

bower install https://github.com/username/project.git

That worked fine.

Now I can list all them with

bower list

and then I can pick the name of each dependency of my project and run

bower update dependency-name

Question: How can I bulk update all of them? Or do I have to write a shell script to loop through and update them?

Answer

Sindre Sorhus picture Sindre Sorhus · Aug 7, 2013

You can update all by running bower update.

Use the -h flag on any command to see how you can use it. Eg bower update -h.