> For the complete documentation index, see [llms.txt](https://docs.uibakery.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uibakery.io/on-premise/install-and-update/updating-on-premise-version.md).

# Updating on-premise

Please note that the on-premise version differs from the cloud version and is not updated automatically.

## On-premise version release notes

You can follow the updates [here](https://app.getbeamer.com/uibakery/en) with the **`ON-PREMISE RELEASE`** tag.

## Update to the latest version

To update your UI Bakery on-premise version to the latest one, follow the steps below:

1. Take a full backup of the UI Bakery instance.
2. Go to your `ui-bakery-on-premise` folder:

```bash
cd ./ui-bakery-on-premise
```

3. Run `./update.sh` that will download new images and restart your instance:

```bash
./update.sh
```

4. If you use Git to manage your apps in UI Bakery, follow [this guide](/concepts/source-control/migrate-your-app-model-to-the-latest-version.md) to properly migrate the application model.

## Update to the specific version

To update your UI Bakery on-premise version to the specific version, follow the steps below:

1. Take a full backup of the UI Bakery instance.
2. Go to your `ui-bakery-on-premise` folder:

```bash
cd ./ui-bakery-on-premise
```

3. Set the `UI_BAKERY_VERSION` environment variable to the desired version in the `.env` file.
4. Then restart the system.

```bash
# pull new images
docker compose pull
# restart UI Bakery
docker compose down && docker compose up -d
```

5. Optionally delete old images.

```bash
docker image prune -a -f
```

6. If you use Git to manage your apps in UI Bakery, follow [this guide](/concepts/source-control/migrate-your-app-model-to-the-latest-version.md) to properly migrate the application model.

## Updating from version 2.25.0 and lower to the new version

If you are on a <mark style="color:red;">**2.25.0 UI Bakery version or lower**</mark>, please follow the guide below to update to a newer version.

{% hint style="danger" %}
Please note this is a one-time procedure! You need to follow these steps only once to upgrade from any version lower than 2.25.0. If you are on a higher version, please use [this guide](#update-to-the-latest-version).
{% endhint %}

1. Create a backup of `ui-bakery-on-premise` folder:

```bash
cp -R ui-bakery-on-premise ui-bakery-on-premise_old
```

2\. Go to `ui-bakery-on-premise` folder and run:

```bash
curl -k -L -o docker-compose.yml <https://raw.githubusercontent.com/uibakery/self-hosted/main/docker-compose.yml>
```

3\. Comment `UI_BAKERY_WORKBENCH_PATH` variable by adding `#` at the beginning of the line in `.env` file:

```bash
nano .env

#UI_BAKERY_WORKBENCH_PATH=...
```

* Press `control + O` to save.
* Press `control + X` to exit.

4\. Run the next command to rerun containers:

```bash
sudo docker compose build --pull
sudo docker compose pull
sudo docker compose up -d
```

5\. Check your UI Bakery instance.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uibakery.io/on-premise/install-and-update/updating-on-premise-version.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
