---
title: Installation
slug: klevu-magento-v4/oIFJ-new-installation
docTags: 
createdAt: 2024-08-30T13:44:27.595Z
---

:::hint{type="danger"}
If you're an existing customer using Klevu module versions v2.x or v3.x, migration to v4.x is not currently supported. However, we encourage you to contact [support ](https://help.klevu.com/support/tickets/new)and express your interest. We'll notify you via email once the migration option becomes available.
:::

:::hint{type="warning"}
In line with Magento's best practice, we recommend taking a backup of your database and enabling maintenance mode before making any changes to your Magento site.

All changes should be tested in a non-production environment first.
:::

## Step 1 - Add v4.x packages

Add the modules via composer.&#x20;

```shell
composer require "klevu/module-m2-search:^4.0.0"
```

## Step 2 - Update Magento

Enable modules, update the database, compile code, generate static content and clear caches.

```shell
bin/magento module:status | grep Klevu_ | grep -v List | grep -v None | grep -v -e '^$'| xargs php bin/magento module:enable
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento cache:flush
```

##

