A PHP tool to automate Magento release and patch downloads using Magento's download API.
Download the latest
It's now ready to use:
php magedownload.phar help
If you want to make it available anywhere on your system
chmod +x magedownload.phar mv magedownload.phar /usr/local/bin/magedownload
And can be used:
- Clone to your modules directory
- Install with composer
mkdir -p ~/.n98-magerun/modules git clone https://github.com/steverobbins/magedownload-cli ~/.n98-magerun/modules/magedownload-cli cd ~/.n98-magerun/modules/magedownload-cli curl -sS https://getcomposer.org/installer | php php composer.phar install
- Clone this repository
- Install with composer
git clone https://github.com/steverobbins/magedownload-cli cd magedownload-cli curl -sS https://getcomposer.org/installer | php php composer.phar install
See the help command for all command information:
$ php magedownload.phar help
To use the Magento download API you must have a user ID and token. These can be generated by logging into your account on magento.com and navigating to Account Settings -> Downloads Access Token.
Once you have your credentials, you can either specify them with each command (using
--token options), or use the
configure command to save the settings to your environment (in
php magedownload.phar help configure for details.
$ php magedownload.phar download [<name>] [<destination>] [--extract]
$ php n98-magerun.phar download:download [<name>] [<destination>] [--extract]
Downloads the specified file to the given destination. Use the
files command to find the correct
If no name is given, you will be prompted to select a file to download.
If no destination is given, the file is downloaded to current directory.
--extract is given, the downloaded file will be extracted when possible. The destination must end with
.tar.gz. The files will be extracted to a folder of the same name, without the file extension.
$ php magedownload.phar files
$ php n98-magerun.phar download:files
Lists files that are available for download.
You may use either
--filter-type options to narrow your search. Examples:
php magedownload.phar files --filter-version 18.104.22.168
php magedownload.phar files --filter-version "1.9.*"
php magedownload.phar files --filter-type ce-full
* Due to limitiations with the API, only one filter may be used at a time.
$ php magedownload.phar versions
$ php n98-magerun.phar download:versions
Lists all Magento versions that have been released.
Please create an issue for all bugs and feature requests.
Fork this repository and send a pull request to the