How to Install an Extension from Magento Marketplace
In this article
Installing an extension from the Magento Marketplace lets you add new features to your store without writing custom code. This guide walks you through the entire process, from purchasing the extension to verifying it works on your site. Before you begin, make sure you have your Magento admin credentials, SSH access to your server (if you plan to install via command line), and a valid Marketplace account.
What You'll Need
- A Magento 2 store (Community or Commerce edition) with admin access.
- An account on marketplace.magento.com (free to create).
- Your Magento Access Keys (public and private) from your Marketplace account.
- SSH/terminal access to your server (for command-line installation).
- Composer installed on your server (Magento 2 uses Composer for dependency management).
- A backup of your store files and database (recommended before any extension install).
Step-by-Step
- Purchase or get the extension – Log in to the Magento Marketplace, find the extension you need, and purchase it (if paid) or add it to your cart (if free). Complete the checkout process.
- Generate access keys – In the Marketplace, go to My Profile → Access Keys. Click Create a New Access Key, name it (e.g., "Store Production"), and copy the Public Key and Private Key.
- Connect your store to the Marketplace – In your Magento admin, go to System → Web Services → Integration (or System → Marketplace in some versions). Click Add New Integration, enter a name, and paste your public and private keys. Save the integration.
- Install via Composer (recommended) – Open your terminal and navigate to your Magento root directory. Run the following commands:
Replacecomposer require <vendor>/<extension-name>:<version><vendor>and<extension-name>with the package name from the Marketplace (you'll see it on the extension page). If you don't know the exact version, use*or check the extension's page for the latest version. - Run Magento upgrade commands – After Composer installs the package, run these commands in order:
This updates the database schema, recompiles the dependency injection, and clears caches.php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento cache:clean - Deploy static content (if in production mode) – If your store runs in production mode, run:
This generates the necessary static files (CSS, JS, images).php bin/magento setup:static-content:deploy - Verify the extension – Log out of the admin and log back in. Go to Stores → Configuration (or the extension's own menu) to check if the extension appears. Also test the frontend to ensure no errors appear.
- Clear the cache – In the admin, go to System → Cache Management and flush all caches. This ensures the new extension's files are picked up.
Common Mistakes
- Using the wrong access keys – Make sure you copy the keys from the Marketplace, not from your Magento admin (they are different).
- Forgetting to run
setup:upgrade– This is the most common mistake; without it, the extension's database tables won't be created. - Installing on a production server without testing – Always test on a staging environment first.
- Ignoring version compatibility – Check that the extension supports your Magento version (2.4.x, 2.3.x, etc.).
- Not backing up before install – If something goes wrong, you'll need to restore.
Tips
- Use the Web Setup Wizard alternative: In admin, go to System → Web Setup Wizard → Extension Manager. This provides a graphical interface to install extensions, but it's slower and less reliable than Composer.
- Always check the extension's documentation for any additional setup steps (like cron jobs or API keys).
- Keep a list of installed extensions and versions in a text file for future reference.
- Set your store to maintenance mode during installation to avoid customer disruption:
Then disable it after you're done.php bin/magento maintenance:enable
Troubleshooting
- Composer authentication error – If you get a 401 error, your access keys are wrong. Re-generate them in the Marketplace and update the
auth.jsonfile in your Magento root (or runcomposer configagain). - Setup:upgrade fails – Check the error message. Common causes: missing PHP extensions, permission issues on files, or a conflicting module. Fix permissions with
chmod -R 777 var/ pub/ generated/(or use proper ownership). - Extension doesn't appear in admin – Clear caches and log out/in. If still missing, check that the module is enabled: run
php bin/magento module:statusand thenphp bin/magento module:enable <Module_Name>. - White screen after install – This is usually a PHP error. Check
var/log/system.logandvar/log/exception.log. Disable the extension temporarily by renaming its folder inapp/code(if installed manually) or using Composer to remove it. - Version conflict with other extensions – Run
composer updateto resolve dependencies, or manually adjust the version requirements incomposer.json.
Frequently Asked Questions
Can I install an extension without SSH access?
Yes, you can use the Web Setup Wizard in the admin panel, but it requires that your server supports the wizard (it uses a separate process). If you don't have SSH, you can also manually download the extension from the Marketplace and upload it to app/code using FTP, but this is not recommended because it bypasses Composer and can cause dependency issues.
How do I find the extension's package name?
On the extension's Marketplace page, look for the Technical Details section. The package name usually looks like vendor/module-name (e.g., magento/sample-module). You can also find it in the Install instructions on the page.
Do I need to purchase the extension again for a second store?
It depends on the license. Most extensions allow installation on a single domain per purchase, but some offer multi-store licenses. Check the extension's license agreement on the Marketplace.
What if the extension is not compatible with my Magento version?
You should not install it. Check the extension's page for compatibility information. If you already installed it and get errors, remove it immediately using composer remove and restore from backup.
Can I uninstall an extension?
Yes. Run composer remove <vendor>/<extension-name> and then run php bin/magento setup:upgrade to clean up database tables. Some extensions may leave data behind; check the extension's documentation for a clean removal.
Why do I need to run setup:di:compile?
This command regenerates the dependency injection configuration, which is necessary for Magento to recognize the new extension's classes and dependencies. Skipping it can cause fatal errors.