> For the complete documentation index, see [llms.txt](https://docs.kinwall.family/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kinwall.family/self-hosting-reference/updating.md).

# Updating

Database migrations run automatically on every target: at boot on Docker/Node, and on the first request or cron tick on Workers. You never run them by hand. After an update, open wall displays show **Kinwall updated — tap to reload**.

## Docker

Images are published to `ghcr.io/johnduprey/kinwall` for every push to `main` (tag `main`) and every release (`1.2.3`, `1.2`).

```bash
docker pull ghcr.io/johnduprey/kinwall
docker rm -f kinwall
docker run -d --name kinwall -p 8080:8080 -v ./data:/data -e PUBLIC_URL=... ghcr.io/johnduprey/kinwall
```

With Compose: `docker compose pull && docker compose up -d` (or `docker compose up -d --build` if you build from source). Pin a version tag if you don't want to follow `main`.

## Cloudflare Workers

* **Setup script**: `git pull`, then `node scripts/setup-cloudflare.mjs` again. It keeps your database and secrets.
* **Git-connected dashboard**: every push to the production branch deploys. Sync your fork to update.
* **Tag workflow**: push a `v*` tag (or run the workflow manually).

## Home Assistant add-on

Update from the add-on page like any other add-on.

## If a device shows an old version

Home Screen apps can hang on to an old build. Use **Settings → General → This display → Clear cache and reload**. See [Troubleshooting](/self-hosting-reference/troubleshooting.md#stale-app-after-an-update).


---

# 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 dynamically by asking a question.

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

```
GET https://docs.kinwall.family/self-hosting-reference/updating.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
