Skip to content

Instantly share code, notes, and snippets.

@piotrekkaminski
Last active August 8, 2023 08:38
  • Star 25 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save piotrekkaminski/9bc45ec84028611d621e to your computer and use it in GitHub Desktop.
How to automatically download patches and release of Magento
1) First you need to generate download token. Login to your account on magento.com and generate it in Account Settings->Downloads Access Token
2) You will need your MAGEID as well. It is shown at the top-left in your account page.
3) curl -k https://MAGEID:TOKEN@www.magentocommerce.com/products/downloads/info/help
4) Profit!
@steverobbins
Copy link

Would it be possible to add MD5 checksums to info/files?

@arosenhagen
Copy link

...and actually only versions > 1.9.0.0 are accessible. Since the old URLs (see netz98/n98-magerun#722) are no longer working too, we're a bit stuck with automated testing :-/
I managed to get magedownload-cli working within our MageTestStand with encrypted env vars on travis - but for < 1.9.0.0 we still have to rely on OpenMage mirrors.

@arosenhagen
Copy link

currently also magento-1.9.1.1 is missing somehow.

@electroidru
Copy link

And sample data for magento 1.9.2.2 available from that page https://github.com/Vinai/compressed-magento-sample-data

@steverobbins
Copy link

It would also be nice to have a "date released" column in info/files

@piotrekkaminski
Copy link
Author

i've requested the changes mentioned above but don't have timeline for that.

@piotrekkaminski
Copy link
Author

older versions of CE added. if any other files you need are missing - let me know.

@steverobbins
Copy link

@piotrekkaminski Just noticed this. Thanks!

@steverobbins
Copy link

@piotrekkaminski info/filter/version/2.* will show me Enterprise Editions despite me not be a partner. Downloading them however doesn't work.

@gwillem
Copy link

gwillem commented Mar 20, 2016

@piotrekkaminski Thanks for the API!

However, it seems broken (at least for my creds) since March 19th (I do a nightly request):

$ curl -k https://$ID:$TOKEN@www.magentocommerce.com/products/downloads/info/files
No results found.

@xyphoid
Copy link

xyphoid commented Mar 23, 2016

Yep this is broken as of today for me too.

@vdloo
Copy link

vdloo commented Mar 31, 2016

can confirm that this has been broken since 19 March

$ bin/magedownload files
No results found.

@piotrekkaminski
Copy link
Author

@gwillem and @ALL i see the results. Probably @steverobbins would need to update magedownload as there are new columns in the output (md5)

@gwillem
Copy link

gwillem commented Apr 13, 2016

Piotr, what command do you use? It seems still broken. I am not using magedownload but am directly querying your API. See here:

$ curl -k https://$MAGENTO_ID:$MAGENTO_TOKEN@www.magentocommerce.com/products/downloads/info/help

Downloads Usage:
  [wget|curl -O] https://MAG_ID:TOKEN@www.magentocommerce.com/products/downloads/file/[FILENAME]

Info Usage:
  curl https://MAG_ID:TOKEN@www.magentocommerce.com/products/downloads/info/[OPTION]/[PARAMS]

Options:

  help          This help
  files         List of all available files for download
  versions      Versions list
  filter        Filtered list of all available files for download (see "Filter Options" for usage)
  json          The JSON feed of all available files

Filter Params:

  version       Shows files by version number. You can use wildcard.
                Example: /downloads/info/filter/version/1.9.2.1
                Example: /downloads/info/filter/version/1.9.*

  type          Shows files by file type:

                ce-full     - Community Edition - Full
                ee-full     - Enterprise Edition - Full
                ce-patch    - Community Edition - Patch
                ee-patch    - Enterprise Edition - Patch
                other       - Other

                Example: /downloads/info/filter/type/ce-full

$ curl -k https://$MAGENTO_ID:$MAGENTO_TOKEN@www.magentocommerce.com/products/downloads/info/filter/version/2.*
No results found.
$ curl -k https://$MAGENTO_ID:$MAGENTO_TOKEN@www.magentocommerce.com/products/downloads/info/filter/version/*
No results found.
$ curl -k https://$MAGENTO_ID:$MAGENTO_TOKEN@www.magentocommerce.com/products/downloads/info/files
No results found.
$ curl -k https://$MAGENTO_ID:$MAGENTO_TOKEN@www.magentocommerce.com/products/downloads/info/versions
CE Versions                   
------------------------------
2.0.4
2.0.2
2.0.1
2.0.0
1.9.2.4
1.9.2.3
1.9.2.2
1.9.2.1
1.9.2.0
1.9.1.1
1.9.1.0
1.9.0.1
1.9.0.0
1.8.1.0
1.8.0.0
1.7.0.2
1.7.0.1
1.7.0.0
1.6.2.0
1.6.1.0
1.6.0.0
1.5.1.0
1.5.0.1
1.5.0.0
1.4.2.0
1.4.1.1
1.4.1.0
1.4.0.1
1.4.0.0

EE Versions                   
------------------------------
2.0.4
2.0.2
2.0.1
2.0.0
1.9.1.1
1.9.1.0
1.9.0.0
1.8.0.0
1.7.1.0
1.7.0.0
1.6.0.0
1.14.2.4
1.14.2.3
1.14.2.2
1.14.2.1
1.14.2.0
1.14.1.0
1.14.0.1
1.14.0.0
1.13.1.0
1.13.0.2
1.13.0.1
1.13.0.0
1.12.0.2
1.12.0.1
1.12.0.0
1.11.2.0
1.11.1.0
1.11.0.2
1.11.0.1
1.11.0.0
1.10.1.1
1.10.1.0
1.10.0.2
1.10.0.1
1.10.0.0
$ curl -k https://$MAGENTO_ID:$MAGENTO_TOKEN@www.magentocommerce.com/products/downloads/info/json
[]

So only the version and help methods work but not the files or filter.

@steverobbins
Copy link

@piotrekkaminski can confirm @gwillem's findings. I'm testing with the curl command, not magedownload-cli. Perhaps an issue with account permissions? I will share my id/token with you so you can test, if you like.

@piotrekkaminski
Copy link
Author

@steverobbins, @gwillem - can you email me your ID and token so i can check. It is working for me with both my EE and CE credentials
LM-CVR-00874475:li-cert pikaminski$ curl -k https://xxxx:yyyyyyyy@www.magentocommerce.com/products/downloads/info/filter/version/2.*

File Description File Type Md5 Hash Publication Date Version File Name

Magento Enterprise Edition - version 2.0.4.zip Enterprise Edition - Full d33c49ecd9920ff6da0f465d94015445 2016-03-31 07:01:00 2.0.4 Magento-EE-2.0.4.zip
Magento Enterprise Edition - version 2.0.4.tar.gz Enterprise Edition - Full cf8a1568333bc5a3e2a284c5b676e2f6 2016-03-31 07:13:00 2.0.4 Magento-EE-2.0.4.tar.gz
Magento Enterprise Edition - version 2.0.4.tar.bz2 Enterprise Edition - Full 8175351f0ff6ba5609323de351d33377 2016-03-31 07:15:00 2.0.4 Magento-EE-2.0.4.tar.bz2
Magento Enterprise Edition - version 2.0.4 with Sample Data.zip Enterprise Edition - Full fca4c09f63049f3bf8bdb2c528d18e1c 2016-03-31 07:18:00 2.0.4 Magento-EE-2.0.4+sample_data.zip
Magento Enterprise Edition - version 2.0.4 with Sample Data.tar.gz Enterprise Edition - Full cf8a1568333bc5a3e2a284c5b676e2f6 2016-03-30 07:22:00 2.0.4 Magento-EE-2.0.4+sample_data.tar.gz
Magento Enterprise Edition - version 2.0.4 with Sample Data.tar.bz2 Enterprise Edition - Full fe9809146c6a26fcec5e8c0b0e749eca 2016-03-31 07:25:00 2.0.4 Magento-EE-2.0.4+sample_data.tar.bz2
Magento Community Edition 2.0.4.zip Community Edition - Full 01d94908c3e168c829b1b945c5772db5 2016-03-31 14:21:00 2.0.4 Magento-CE-2.0.4.zip
Magento Community Edition 2.0.4.tar.gz Community Edition - Full b59e51ee45534859395adc4c856969b1 2016-03-30 14:24:00 2.0.4 Magento-CE-2.0.4.tar.gz
Magento Community Edition 2.0.4.tar.bz2 Community Edition - Full 3330dfd2a5ada8a50e1c04be107dc18f 2016-03-31 14:27:00 2.0.4 Magento-CE-2.0.4.tar.bz2
Magento Community Edition 2.0.4 with Sample Data.zip Community Edition - Full 1ce9f662216409bcbf455c26719d9a2e 2016-03-31 14:34:00 2.0.4 Magento-CE-2.0.4+sample_data.zip
Magento Community Edition 2.0.4 with Sample Data.tar.gz Community Edition - Full bf3a547a8318527a42e89e8637f5fb56 2016-03-31 14:41:00 2.0.4 Magento-CE-2.0.4+sample_data.tar.gz
Magento Community Edition 2.0.4 with Sample Data.tar.bz2 Community Edition - Full 37e422a6fca5c5628ceacc90e81ec134 2016-03-31 14:47:00 2.0.4 Magento-CE-2.0.4+sample_data.tar.bz2
Magento Community Edition 2.0.2.zip Community Edition - Full 320ea4dd6b6cca0d80c8a7865546c9a1 2016-01-28 06:17:00 2.0.2 Magento-CE-2.0.2.zip
Magento Community Edition 2.0.2.tar.gz Community Edition - Full 5548a29281314e9799ac544df85fca6b 2016-01-28 06:22:00 2.0.2 Magento-CE-2.0.2.tar.gz
Magento Community Edition 2.0.2.tar.bz2 Community Edition - Full b9c9d8668e3961dd4bc4b90e8f3855a8 2016-01-28 06:25:00 2.0.2 Magento-CE-2.0.2.tar.bz2
Magento Community Edition 2.0.2 with Sample Data.zip Community Edition - Full 17e4849fb706334fcb5b32297cc9c56c 2016-01-28 06:33:00 2.0.2 Magento-CE-2.0.2+sample_data.zip
Magento Community Edition 2.0.2 with Sample Data.tar.gz Community Edition - Full c2b21874b0b5e6a46b2aa89bcf6c3ccb 2016-01-28 06:41:00 2.0.2 Magento-CE-2.0.2+sample_data.tar.gz
Magento Community Edition 2.0.2 with Sample Data.tar.bz2 Community Edition - Full 722664dc69f0be1e23e7adcef8c381fe 2016-01-28 06:48:00 2.0.2 Magento-CE-2.0.2+sample_data.tar.bz2
Magento Enterprise Edition - version 2.0.2.zip Enterprise Edition - Full d2a295d98eef5cbcba589db5388b6d82 2016-01-28 07:06:00 2.0.2 Magento-EE-2.0.2.zip
Magento Enterprise Edition - version 2.0.2.tar.gz Enterprise Edition - Full b68062b1f659f6a39fdb1baeeb2e0da3 2016-01-28 07:12:00 2.0.2 Magento-EE-2.0.2.tar.gz
Magento Enterprise Edition - version 2.0.2.tar.bz2 Enterprise Edition - Full 165d5abf80fc593743e39a9329b448ee 2016-01-28 07:16:00 2.0.2 Magento-EE-2.0.2.tar.bz2
Magento Enterprise Edition - version 2.0.2 with Sample Data.zip Enterprise Edition - Full d92c07796ca620cad00984ca8edf065f 2016-01-28 07:19:00 2.0.2 Magento-EE-2.0.2+sample_data.zip
Magento Enterprise Edition - version 2.0.2 with Sample Data.tar.gz Enterprise Edition - Full 02985b0f60839ae9a2fb4e9dec32a60d 2016-01-28 07:32:00 2.0.2 Magento-EE-2.0.2+sample_data.tar.gz
Enterprise Edition Support Patch MDVA-84.zip Enterprise Edition - Patch da6b5a2380a8e63d946465ad495e1c3d 2016-01-28 08:00:00 2.0.1 EE-MDVA-84.zip
Enterprise Edition Support Patch MDVA-84.tar.gz Enterprise Edition - Patch 9af41ccd5bd23f48aa0c6039b2ff2445 2016-01-28 08:17:00 2.0.1 EE-MDVA-84.tar.gz
Enterprise Edition Support Patch MDVA-84.tar.bz2 Enterprise Edition - Patch 57f8f342dd803b409f85b553ec1cf828 2016-01-28 08:22:00 2.0.1 EE-MDVA-84.tar.bz2

Community Edition Support Patch MDVA-84.tar.bz2 Community Edition - Patch d8c9d433052f100571f655fa4453f528 2016-01-28 09:22:00 2.0.1 CE-MDVA-84.tar.bz2

@gwillem
Copy link

gwillem commented May 17, 2016

Thanks, it seems to be working again!

@piotrekkaminski
Copy link
Author

yes, was just fixed

@zirho
Copy link

zirho commented Jan 19, 2017

curl -k https://MAG1:333333@www.magentocommerce.com/products/downloads/info/filter/type/ce-full | grep Sample
No sample data for old versions like. 1.8 or 1.7

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 27298  100 27298    0     0  32005      0 --:--:-- --:--:-- --:--:-- 32002
Magento Community Edition 2.0.2 with Sample Data.zip               Community Edition - Full          17e4849fb706334fcb5b32297cc9c56c          2016-01-28 06:33:00          2.0.2            Magento-CE-2.0.2+sample_data.zip
Magento Community Edition 2.0.2 with Sample Data.tar.gz            Community Edition - Full          c2b21874b0b5e6a46b2aa89bcf6c3ccb          2016-01-28 06:41:00          2.0.2            Magento-CE-2.0.2+sample_data.tar.gz
Magento Community Edition 2.0.2 with Sample Data.tar.bz2           Community Edition - Full          722664dc69f0be1e23e7adcef8c381fe          2016-01-28 06:48:00          2.0.2            Magento-CE-2.0.2+sample_data.tar.bz2
Magento Community Edition 2.0.4 with Sample Data.zip               Community Edition - Full          1ce9f662216409bcbf455c26719d9a2e          2016-03-31 14:34:00          2.0.4            Magento-CE-2.0.4+sample_data.zip
Magento Community Edition 2.0.4 with Sample Data.tar.gz            Community Edition - Full          bf3a547a8318527a42e89e8637f5fb56          2016-03-31 14:41:00          2.0.4            Magento-CE-2.0.4+sample_data.tar.gz
Magento Community Edition 2.0.4 with Sample Data.tar.bz2           Community Edition - Full          37e422a6fca5c5628ceacc90e81ec134          2016-03-31 14:47:00          2.0.4            Magento-CE-2.0.4+sample_data.tar.bz2
Magento Community Edition 2.0.5 with Sample Data.zip               Community Edition - Full          4735dd360ce1c256a59ae43ec20b4b8d          2016-04-28 16:28:00          2.0.5            Magento-CE-2.0.5+sample_data.zip
Magento Community Edition 2.0.5 with Sample Data.tar.gz            Community Edition - Full          91d33c561048c84d307042179474a6b8          2016-04-28 16:29:00          2.0.5            Magento-CE-2.0.5+sample_data.tar.gz
Magento Community Edition 2.0.5 with Sample Data.tar.bz2           Community Edition - Full          fddea4dfa5fd749ba0646e9d1147b0f2          2016-04-28 16:29:00          2.0.5            Magento-CE-2.0.5+sample_data.tar.bz2
Magento Community Edition 2.0.6 with Sample Data.zip               Community Edition - Full          61e1d9bc38c832e9034ada10e6a62f58          2016-05-17 08:04:00          2.0.6            Magento-CE-2.0.6+sample_data.zip
Magento Community Edition 2.0.6 with Sample Data.tar.gz            Community Edition - Full          a2bd51c608e54e9eacff81def1000095          2016-05-17 08:05:00          2.0.6            Magento-CE-2.0.6+sample_data.tar.gz
Magento Community Edition 2.0.6 with Sample Data.tar.bz2           Community Edition - Full          14cef9e9be75f513796caed634cc1834          2016-05-17 08:06:00          2.0.6            Magento-CE-2.0.6+sample_data.tar.bz2
Magento Community Edition 2.0.7 with Sample Data.zip               Community Edition - Full          -                                         2016-05-23 18:19:00          2.0.7            Magento-CE-2.0.7+sample_data.zip
Magento Community Edition 2.0.7 with Sample Data.tar.gz            Community Edition - Full          -                                         2016-05-23 18:21:00          2.0.7            Magento-CE-2.0.7+sample_data.tar.gz
Magento Community Edition 2.0.7 with Sample Data.tar.bz2           Community Edition - Full          -                                         2016-05-23 18:24:00          2.0.7            Magento-CE-2.0.7+sample_data.tar.bz2
Magento Community Edition 2.1.0 with Sample Data.zip               Community Edition - Full          5dedd8c445f53e6753c06d56d243dd55          2016-06-23 07:19:00          2.1.0            Magento-CE-2.1.0+Samples.zip
Magento Community Edition 2.1.0 with Sample Data.tar.gz            Community Edition - Full          53f790dced5fba47ad2bd7c8e8175563          2016-06-23 07:19:00          2.1.0            Magento-CE-2.1.0+Samples.tar.gz
Magento Community Edition 2.1.0 with Sample Data.tar.bz2           Community Edition - Full          2e3bc5d400a417dd5d45f5697e7661b5          2016-06-23 07:20:00          2.1.0            Magento-CE-2.1.0+Samples.tar.bz2
Magento Community Edition 2.0.9 with Sample Data.zip               Community Edition - Full          730c8511c2e643ad480553c0df44ded1          2016-08-10 08:10:00          2.0.9            Magento-CE-2.0.9+sample_data.zip
Magento Community Edition 2.0.9 with Sample Data.tar.gz            Community Edition - Full          beab39fc347d34b5bd96bc91e8ea959b          2016-08-10 08:12:00          2.0.9            Magento-CE-2.0.9+sample_data.tar.gz
Magento Community Edition 2.0.9 with Sample Data.tar.bz2           Community Edition - Full          78854d4482593f16050731a6e53db5a5          2016-08-10 08:13:00          2.0.9            Magento-CE-2.0.9+sample_data.tar.bz2
Magento Community Edition 2.1.1 with Sample Data.zip               Community Edition - Full          604ffe66f27e96cd55e83145089122e0          2016-08-29 11:33:00          2.1.1            Magento-CE-2.1.1+Samples.zip
Magento Community Edition 2.1.1 with Sample Data.tar.gz            Community Edition - Full          ae145bfcead28b3bc780b095c4030520          2016-08-29 11:41:00          2.1.1            Magento-CE-2.1.1+Samples.tar.gz
Magento Community Edition 2.1.1 with Sample Data.tar.bz2           Community Edition - Full          5dfa791adf34f51000a0f53aafa38c56          2016-08-29 11:46:00          2.1.1            Magento-CE-2.1.1+Samples.tar.bz2
Magento Community Edition 2.0.10 with Sample Data.zip              Community Edition - Full          7a7fcd3908fc6c44c9d680f42f0927b5          2016-10-06 12:31:00          2.0.10           Magento-CE-2.0.10+sample_data.zip
Magento Community Edition 2.0.10 with Sample Data.tar.gz           Community Edition - Full          d4d9cf5a3afc739ecd11cf1ece020ed7          2016-10-07 05:27:00          2.0.10           Magento-CE-2.0.10+sample_data.tar.gz
Magento Community Edition 2.0.10 with Sample Data.tar.bz2          Community Edition - Full          c2e06b63c6e37c49a92c836c83e4dd17          2016-10-07 05:29:00          2.0.10           Magento-CE-2.0.10+sample_data.tar.bz2
Magento Community Edition 2.1.2 with Sample Data.zip               Community Edition - Full          965cce735bef7f2ef2ccc7bd8444ae50          2016-10-07 05:39:00          2.1.2            Magento-CE-2.1.2+Samples.zip
Magento Community Edition 2.1.2 with Sample Data.tar.gz            Community Edition - Full          9825e00d182dcf646ec6e313ae1b11ec          2016-10-07 05:43:00          2.1.2            Magento-CE-2.1.2+Samples.tar.gz
Magento Community Edition 2.1.2 with Sample Data.tar.bz2           Community Edition - Full          d722640dd4ab8e7ba3b7fcdb7526a603          2016-10-07 05:52:00          2.1.2            Magento-CE-2.1.2+Samples.tar.bz2
Magento Community Edition 2.1.3 with Sample Data.zip               Community Edition - Full          4d8b5ed5be930314ebef1edd23c69d44          2016-12-13 13:23:00          2.1.3            Magento-CE-2.1.3+Samples.zip
Magento Community Edition 2.1.3 with Sample Data.tar.gz            Community Edition - Full          826ea63094ad0789aa02e3c62e9ec6f4          2016-12-13 13:26:00          2.1.3            Magento-CE-2.1.3+Samples.tar.gz
Magento Community Edition 2.1.3 with Sample Data.tar.bz2           Community Edition - Full          15195ff5814ae7be0350b48b368d3419          2016-12-13 13:28:00          2.1.3            Magento-CE-2.1.3+Samples.tar.bz2
Magento Community Edition 2.0.11 with Sample Data.zip              Community Edition - Full          b8a6bfa41ec758f3b4cc9ab67b8ad4e1          2016-12-13 13:30:00          2.0.11           Magento-CE-2.0.11+sample_data.zip
Magento Community Edition 2.0.11 with Sample Data.tar.gz           Community Edition - Full          c4c7fc8b0de0a04d47d97f4858b19da8          2016-12-13 13:33:00          2.0.11           Magento-CE-2.0.11+sample_data.tar.gz
Magento Community Edition 2.0.11 with Sample Data.tar.bz2          Community Edition - Full          88909f6d3ab3a78714749a02207dfb5d          2016-12-13 14:23:00          2.0.11           Magento-CE-2.0.11+sample_data.tar.bz2

@kassner
Copy link

kassner commented Feb 2, 2017

@piotrekkaminski

As stated here, all 1.9.2.4 sample data files are corrupted. How can we obtain them? Downloading from the Magento website gives me the same file as the API (same MD5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment