To upgrade magento from the command line (you would like to do it in case you have no public ftp access)
chmod 766 mage
this upgrades all the extensions and the core application.
This utility can also be used to install extensions:
./mage install community