# Upgrade Exchange

![](/files/-M_OzYnyiz1pdw-TQblj)

HollaEx Kit always comes with something new on each release. You can pull the latest changes from Github and apply them to your exchange by following the few simple steps below.

## Before you start

Please make sure to **make a backup** of your **entire HollaEx Kit** and the **database**, *before* you apply anything new.&#x20;

{% hint style="info" %}
For making a backup for your database, run **`hollaex toolbox --backup`**.
{% endhint %}

You should commit all of your custom changes with the command below **before** you pull anything new from Github.

<pre><code><strong>git add --all
</strong><strong>git commit --all
</strong></code></pre>

## Pull new changes

HollaEx Kit follows the standard Git structure for managing new versions of code. You can simply run the command below to get the latest `master` branch of it.

```
git pull origin master
```

If there's a **Git conflict,** please carefully **solve** them all based on your code status **before** applying anything on your exchange.

{% hint style="info" %}
If this is your first HollaEx Kit upgrade, the Git might ask you to choose the Git config options. We recommend you go with 'git config pull.rebase false'.
{% endhint %}

```
hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint:
hint:   git config pull.rebase false  # merge
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
```

## Upgrade HollaEx CLI

It is always recommended to upgrade your HollaEx CLI to the latest version before you apply the new code to your HollaEx Kit.

```
bash install.sh
```

Simply running the command above would upgrade your pre-installed CLI to the latest.

## Apply the code

Please check the [Build and apply the code changes](/get-started/cli-how-tos/upgrade-exchange/build-and-apply-the-code-changes.md) section to apply the new changes to your exchange.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hollaex.com/get-started/cli-how-tos/upgrade-exchange.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
