How to Update an Amasty Extension via Composer

How to update an Amasty extension?

Below you can find a step-by-step guide for updating your Amasty extensions to latest versions.
InfoBefore updating the module, it's recommended to create a backup of the modified extension files (if any). When the update is finished, you can re-apply the custom patches and/or re-upload the altered files from the previously created backup if needed. 
Notes
Please note that manual module update and installation have been deprecated in the amasty.com platform, and all Amasty extensions are available for installation only via composer. Thus, if module update is required and it was previously installed by manual upload, the package needs to be removed from app/code/Amasty and installed via composer instead.

Step 1.
Ensure that you're using project-level composer keys from License Registration tab in your amasty.com account, as old account-level composer keys from Products tab have been deprecated and disabled. These old account-level keys don't grant access to module download anymore. For accessing extensions, project-level keys need to be utilized.

Our developers have come up with an easy an quick migration process for old keys that takes only a couple of clicks in your account and doesn't require changing anything in your Magento installations. Please, follow this guide to migrate your keys: How to switch to project-level composer keys from old account-level keys? If you already have a project, you can find project-level composer keys using the following article: Where can I find Composer access keys?

Step 2. Log in to the server via a command line and proceed to the root Magento folder.

Step 3. Execute the following command:

composer update amasty/<composer_module_name>

Here <composer_module_name> is the Composer name of the extension you are updating. To find the Composer name of the module, open the Products tab of your account and scroll down to the Composer packages section:




It is also possible to update multiple extensions with one command:

composer update amasty/<module_name_a> amasty/<module_name_b> amasty/<module_name_c>

Or update all installed Amasty extensions at once: 

composer update amasty/*

Step 4. After the extension update, the following commands should be run:

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy (your locale)

      • Related Articles

      • How to proceed if I need to update Amasty Base extension?

        To finish license registration for your amasty.com account, you need to enter your Instance Registration Key into our Base module functionality that becomes available with v.1.16.0 and newer. In order to check your Base module version and its latest ...
      • How do I update the theme?

        We are constantly improving and updating our extensions, therefore, we suggest that you always use the latest extension/theme version on your site. Please note, the Jet Theme, as a whole, has dependencies - meaning, it's installed and updated in ...
      • I’ve updated the modules via composer and I got the Autoload error: Module 'Amasty_Base' has been already defined.

        Such errors can appear if the module you're trying to install or update is already present in Magento installation under some other path. In other words, there's a duplicate with the exact same files, but it is located in another directory. ...
      • Why did all my extensions disappear from the Amasty “Products” tab?

        If you don’t see any extensions available in the Products tab, it’s likely that the Base version you have installed is outdated: To fix the issue, please update the module to the latest version available. You may do it by running the below command: ...
      • How to install an Amasty extension?

        Follow these steps to install Amasty modules in your Magento environment: Step 1. To download and install Magento modules, the vendor repository is required. The Amasty repository can be added with the next command: composer config ...