Composer is the main package manager responsible for extending Magento 2.
¶Package Repositories
Each of the examples below is required to add the repository and the key pair so that you easily add and upgrades extensions from the vendors. Please note each vendor will provide you with a method to obtain your public and private keys usually in your account area. These must replace the placeholders (PUBLIC_KEY PRIVATE_KEY) in the below commands.
Magento Marketplace
If you are purchasing your extensions from Magento Marketplace you can use this guide to obtain your access keys. Alternatively most vendors will also provide you with composer access keys and instructions which will be very similar.
On your MDOQ instance, click 'Support' then 'Web SSH' then
Other common extension vendor Repo's
aheadworks
Amasty
Mageworx
ebizmarts
wyomind
ZERO-1
Enter your credentials when you install the module and choose Yes when asked if you wish to store your credentials
If you have successfully added the repo and the necessary keys, and you are on MDOQ managed Magento hosting, you should then be able to search for the extension via the MDOQ 'Install Module' option in the Magento Tool Belt > Actions, alternatively you can use the CLI tool.
REMEMBER, when you have finished, use the Git option to 'Git Push' to ensure you commit your composer changes (usually in auth.json, composer.json and composer.lock)