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?
You can update all by running
bower update
.Use the
-h
flag on any command to see how you can use it. Egbower update -h
.Used bower-update-all to update all bower dependencies in bower.json, as follows:
This process is a little slow but is secure because you can realize when your app gets broken.
lets say that you want to update bootstrap you just need to run
bower install --save bootstrap
and you bower.json file will be updatedBefore
After
If you want to force all dependencies to update you can use
bower install --save --force
. This is the same asbower install --save [dep1] [dep2] ...
The short version is
bower i -S -f