PHPackages                             steverobbins/magedownload-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. steverobbins/magedownload-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

steverobbins/magedownload-cli
=============================

Download Magento editions and patches via command line

v2.0.0(10y ago)47107[4 issues](https://github.com/steverobbins/magedownload-cli/issues)CC-BY-4.0PHP

Since Oct 30Pushed 9y ago3 watchersCompare

[ Source](https://github.com/steverobbins/magedownload-cli)[ Packagist](https://packagist.org/packages/steverobbins/magedownload-cli)[ RSS](/packages/steverobbins-magedownload-cli/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (5)Versions (13)Used By (0)

MageDownload CLI
================

[](#magedownload-cli)

[![Build Status](https://camo.githubusercontent.com/3796da3d21fae0a6e5e9ddc273c077612c4bfda6f989f6d0e7919a688d01b4ce/68747470733a2f2f7472617669732d63692e6f72672f7374657665726f6262696e732f6d616765646f776e6c6f61642d636c692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/steverobbins/magedownload-cli)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/683b825a55c6d9e9a73cc9418da62f605982e8e72a27bac5351e6457f89b585e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7374657665726f6262696e732f6d616765646f776e6c6f61642d636c692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/steverobbins/magedownload-cli/?branch=master)[![codecov.io](https://camo.githubusercontent.com/ea419ca3ffc9addc3526d86acfc0eb33fada43478d2055eabea20800ad5dbc90/68747470733a2f2f636f6465636f762e696f2f6769746875622f7374657665726f6262696e732f6d616765646f776e6c6f61642d636c692f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/steverobbins/magedownload-cli?branch=master)

A PHP tool to automate Magento release and patch downloads using [Magento's download API](https://gist.github.com/piotrekkaminski/9bc45ec84028611d621e).

[![Example](https://camo.githubusercontent.com/74e046c1ea23e9eaf90e6e9f06cb96515a7cf09e7d0f604191cab1387c78e8ad/687474703a2f2f692e696d6775722e636f6d2f7a3164635476732e676966)](https://camo.githubusercontent.com/74e046c1ea23e9eaf90e6e9f06cb96515a7cf09e7d0f604191cab1387c78e8ad/687474703a2f2f692e696d6775722e636f6d2f7a3164635476732e676966)[![Example with Prompts](https://camo.githubusercontent.com/712bca46a4a664444a0fd1d2593e6031730d36beab7bbd710170f996101152fc/687474703a2f2f692e696d6775722e636f6d2f5344504636326b2e676966)](https://camo.githubusercontent.com/712bca46a4a664444a0fd1d2593e6031730d36beab7bbd710170f996101152fc/687474703a2f2f692e696d6775722e636f6d2f5344504636326b2e676966)

Installation
============

[](#installation)

### .phar

[](#phar)

Download the [latest `magedownload.phar` release](https://github.com/steverobbins/magedownload-cli/releases).

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: `magedownload help`

### n98 magerun

[](#n98-magerun)

- 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

```

### Source

[](#source)

- 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

```

Usage
=====

[](#usage)

See the help command for all command information:

```
$ php magedownload.phar help

```

Configuration
-------------

[](#configuration)

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](https://magento.com/) and navigating to **Account Settings** -&gt; **Downloads Access Token**.

Once you have your credentials, you can either specify them with each command (using `--id` and `--token` options), or use the `configure` command to save the settings to your environment (in `~/.magedownload/config.yaml`).

See `php magedownload.phar help configure` for details.

Commands
--------

[](#commands)

### `download`

[](#download)

```
$ php magedownload.phar download [] [] [--extract]

```

or

```
$ php n98-magerun.phar download:download [] [] [--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.

When `--extract` is given, the downloaded file will be extracted when possible. The destination must end with `.zip`, `.tar.bz2`, or `.tar.gz`. The files will be extracted to a folder of the same name, without the file extension.

### `files`

[](#files)

```
$ php magedownload.phar files

```

or

```
$ php n98-magerun.phar download:files

```

Lists files that are available for download.

You may use either `--filter-version` or `--filter-type` options to narrow your search. Examples:

- `php magedownload.phar files --filter-version 1.9.2.2`
- `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.*

### `versions`

[](#versions)

```
$ php magedownload.phar versions

```

or

```
$ php n98-magerun.phar download:versions

```

Lists all Magento versions that have been released.

Support
=======

[](#support)

Please [create an issue](https://github.com/steverobbins/magedownload-cli/issues/new) for all bugs and feature requests.

Contributing
============

[](#contributing)

Fork this repository and send a pull request to the `dev` branch.

License
=======

[](#license)

[Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 97.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Recently: every ~13 days

Total

10

Last Release

3843d ago

Major Versions

v1.3.0 → v2.0.02015-12-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/75f626109c9c7bdb7ecbbd6a838ea38d9ed4e014a166f1fa3bbb9fa17f9e1e36?d=identicon)[steverobbins](/maintainers/steverobbins)

---

Top Contributors

[![steverobbins](https://avatars.githubusercontent.com/u/3498562?v=4)](https://github.com/steverobbins "steverobbins (82 commits)")[![pocallaghan](https://avatars.githubusercontent.com/u/708624?v=4)](https://github.com/pocallaghan "pocallaghan (1 commits)")[![rafaelstz](https://avatars.githubusercontent.com/u/610598?v=4)](https://github.com/rafaelstz "rafaelstz (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/steverobbins-magedownload-cli/health.svg)

```
[![Health](https://phpackages.com/badges/steverobbins-magedownload-cli/health.svg)](https://phpackages.com/packages/steverobbins-magedownload-cli)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
