I'm trying to update my magento from command line. I changed mage permissions to 755
chmod 755 mage
Then I launched mage-setup
./mage mage-setup
But when I try other commands the following error occurs
Please initialize Magento Connect installer by running:
./mage mage-setup