# Updating your local instance

## Hands-free

The easiest way to update your on-prem/local instance (pro or community)

**Run the script&#x20;*****update-ciso-assistant*****:**

```bash
./update-ciso-assistant.sh
```

## Detailled steps

In case of issues (unsupported shell, windows, etc.) here are the steps to consider:

1. backup your db:
   1. if you're using `sqlite`, copy the file under a different name
   2. if it's `postgresql` you can use something like `pgdump`&#x20;

2. stop and clean the containers, this won't affect your data

`docker compose rm -fs`

3. restart the compose and let it handle the migration&#x20;

`docker compose up -d`

## Edge cases

**Force remove the previous docker images to get the new ones**

```bash
docker rmi ghcr.io/intuitem/ciso-assistant-community/backend:latest ghcr.io/intuitem/ciso-assistant-community/frontend:latest 2> /dev/null
```


---

# 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://intuitem.gitbook.io/ciso-assistant/deployment/updating-your-local-instance.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.
