Chili Pepper Design

Web development relleno

Magento 1.5 / EE 1.10 Windows Command Line Batch Update Script mage.bat

| Comments

So, this might be for kind of a narrow audience, but I’m pretty stoked on it so I wanted to share.

In the newest version of the Magento ecommerce platform, Magento 1.5, they have redone their update script. In Magento Connect 2.0, what was called “pear” is now “mage”.

Old and busted:

./pear mage-setup .

New Hotness:

./mage mage-setup .

They basically work the same, but the name has changed and – more importantly if you are reading this – there is no windows batch file to run. There is a Bash shell script, so you can download and update Magento and it’s many Extensions via the command line in Linux, but not Windows.

So, looking at the script and working from the pear.bat script, I made mage.bat. It lets you do command line downloads and updates of Magento in Windows, just like you can on Linux.

Not that anyone is actually hosting Magento on a WAMP setup, but I find it useful to be able to download and install Extensions and modules on my Windows development box.

Download mage.bat – Windows Magento Connect 2.0 Update Script

One you have mage.bat installed in the root directory of your Magento install (right next to the mage bash script), you are ready to go! Just run “mage” from the Windows command line.

mage help

The Yiero blog has a nice article about using Magento Connect 2.0 over command line.

Here is a good article about upgrading Magento from 1.4 to 1.5 as well.


  • Make sure you have PEAR installed on the machine you are running this on
  • Make sure PEAR is in your Windows Path
  • Be sure to install mage.bat in your Magento root directory
  • In the command line, make sure you are in your Magento root when you run mage.bat