# Upgrading your Misago to latest version

To upgrade your Misago site, connect to the server, do `cd ~/misago_docker` to move to the Misago directory, and run the following command:

```
./appctl upgrade
```

You will be asked to confirm that you wish to upgrade your site to the latest available version.

The upgrade process will back up your data and then pull the latest code from the [GitHub repository](https://github.com/rafalp/misago_docker). After the pull completes successfully, your site will be stopped and updated to the latest version.

You may be asked by `git pull` to "identify yourself". If this is the case, simply follow the instructions on the screen to set your GitHub email.

You will also be presented with a command that you can use to return to the previous version in case things go awry. You will need to restore the backup manually to recover your data.

> **Note:** This guide assumes that you originally cloned Misago to your home directory. If you have cloned it elsewhere, you will have to run `cd` with a custom path.


---

# 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://misago.gitbook.io/docs/setup/upgrading.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.
