# Installing

## PHP Requirements

The Nosto Magento 2 MSI module requires at least PHP version >= 7.1.0 and Nosto's Magento 2 module >= 4.0.0

## Installing the extension

> Link to GitHub repository: <https://github.com/Nosto/nosto-magento2-msi>

Currently, the only way of installing the extension is via [Composer](https://getcomposer.org/). If you don't have composer installed you can get it by following [these instructions](https://getcomposer.org/doc/00-intro.md). It's recommended to install composer globally. You will also need public key and private key from Magento Marketplace or Magento Connect in order to install packages to Magento 2 via Composer. Please follow these instructions to get public key and private key <http://devdocs.magento.com/guides/v2.2/install-gde/prereq/connect-auth.html>. Once you have composer installed you can install Nosto extension (nosto/module-nosto-msi).

```
composer require --no-update nosto/module-nosto-msi:"@stable" && composer update --no-dev
```

```
bin/magento module:enable --clear-static-content Nosto_Msi
bin/magento setup:upgrade
bin/magento cache:clean
bin/magento setup:di:compile
```

You might need to change file permissions or ownership of the generated files after the installation.
