Install an extension using Composer

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

Before you can install any extension in Magento 2, you must create a Magento Marketplace account and an access key pair in the “Access Keys” section.

Once you have your Magento Marketplace keys ready, proceed to install the extension. For example:

$ sudo composer require mailchimp/mc-magento2

The system will prompt for authentication. Use your Magento Marketplace keys as described in the Magento documentation and proceed to download the extension.

Once this process is complete, update the Magento configuration to add the new extension as shown below:

$ sudo magento-cli setup:upgrade

Some specific extensions may require some additional steps, so it is always recommended to carefully check the installation instructions of the extension.

Last modification January 22, 2021