# Build and Apply the Code Changes

{% hint style="info" %}
If you are a cloud user, just go to the manage section of the HollaEx Dashboard, and click the buttons on there. simple!
{% endhint %}

## Building the exchange

{% hint style="info" %}
From the HollaEx Kit v2.6, HollaEx CLI will primarily use the public image of the HollaEx Kit from the Docker hub. This could cause some side effects if you customized your HollaEx Kit code. If that's the case, please run `hollaex server --build --local_build` command to force build your local code.
{% endhint %}

```
hollaex server --build
hollaex web --build
```

Whether you make some new code changes or pull the latest update from the HollaEx Kit Github repository, you should build the code first to make it work.

The command above will build a Docker image based on your local HollaEx Kit.

## Applying the image on the exchange

```
hollaex server --apply --registry <YOUR_IMG_REGISTRY> --tag <YOUR_IMG_TAG>
hollaex web --apply --registry <YOUR_IMG_REGISTRY> --tag <YOUR_IMG_TAG>
```

Once the image has been built, you should apply it to the server to make it function.

Run the command above to apply the image.

Applying the new image would cause a **short downtime** on your exchange, so please double-confirm before you run it!


---

# 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/build-and-apply-the-code-changes.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.
