# Updating your local instance

How to update your local instance. All docker images are available on ghcr with the specific versions matching the repo tags. The latest tag points to the most recent release for both back and front.

### Hands-free <a href="#hands-free" id="hands-free"></a>

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

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

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

### Detailled steps <a href="#detailled-steps" id="detailled-steps"></a>

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`
2. stop and clean the containers, this won't affect your data

`docker compose rm -fs`

1. restart the compose and let it handle the migration

`docker compose up -d`

### Edge cases <a href="#edge-cases" id="edge-cases"></a>

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

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