Installation from Marketplace
Prepare to install
Installation requires Marketplace module. It’s our module that registers Magento packages repository in composer.json file, saves its credentials to the auth.json file, automates a bunch of complex commands required to run prior and after module installation, and provides easy to use module installer.
composer require swissup/module-marketplace &&\
bin/magento setup:upgrade --safe-mode=1 &&\
bin/magento marketplace:channel:enable magento
You’ll be asked to enter your credentials. Get your credentials at marketplace.magento.com
Install
When Marketplace module is installed you can proceed with installation in teminal:
composer require swissup/amp &&\
bin/magento setup:upgrade --safe-mode=1 &&\
bin/magento setup:di:compile &&\
bin/magento setup:static-content:deploy &&\
bin/magento marketplace:package:install swissup/amp
Magento 2.1.x users should apply additional changes
Result
Navigate to you store with ?amp=1
parameter in url to check how it looks.