Before making any of the changes listed below, I would recommend that you make a backup copy of the directory where you have your web app with phonegap / cordova.
If what you want to do is update phonegap, from the command line you should do:
npm update -g phonegap
(You may need to put sudo
in front of Linux / Mac terminals).
Once phonegap is updated, to update your web app you must go to its directory and update the version of the platform used (in this case android). Again, from the command line it would be something like this:
cd ruta/a/tu/webapp
phonegap platform update android
Finally if you want to update a plugin, cordova does not include a plugin update command directly, what you can do is check the version you have installed, check the online version and update if they are different.
It is easier to directly delete the plugin and reinstall it, something that would be done like this (from the directory of your web app):
cordova plugin rm <nombre-del-plugin>
cordova plugin add <nombre-del-plugin>