Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ProcessEight/8070604a943ef7e10eee0f1a5ae1467d to your computer and use it in GitHub Desktop.
Save ProcessEight/8070604a943ef7e10eee0f1a5ae1467d to your computer and use it in GitHub Desktop.
Download any Magento resource programmatically.md

Download any Magento version or patch programmatically

  1. Login to Magento.com and find your account ID.
  2. Go to Account Settings > Downloads Access Token and generate a new token.
  3. cURL (or wget) the following URL to make sure you can authenticate: https://MAG_ID:[email protected]/products/downloads/info/help

Example:

$ curl -k https://MAG_ID:[email protected]/products/downloads/info/help

Downloads Usage:
  [wget|curl -O] https://MAG_ID:[email protected]/products/downloads/file/[FILENAME]

Info Usage:
  curl https://MAG_ID:[email protected]/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment