docs/source/guide/upgrade_community.md
When upgrading Label Studio, keep the following in mind:
pip install --upgrade label-studio
Stop the existing Label Studio container:
docker ps # Find the container ID or name
docker stop <container_id_or_name>
Pull the latest Label Studio Docker image:
docker pull heartexlabs/label-studio:latest
Start a new container with the latest image, using the same volume mappings as before:
docker run -it -p 8080:8080 \
-v /path/to/yourdata:/label-studio/data \
-v /path/to/yourfiles:/label-studio/files \
heartexlabs/label-studio:latest
Replace /path/to/yourdata and /path/to/yourfiles with the actual paths you used previously.
Run database migrations (if necessary).
If you encounter any issues after upgrading, you might need to run database migrations:
docker exec -it <container_id_or_name> bash
cd /label-studio
python manage.py migrate
Open Label Studio in your browser at http://localhost:8080 and check that your projects and data are accessible.
If you installed Label Studio using the source in Github, you can upgrade using the following steps.
<div class="code-tabs"> <div data-name="Using Poetry (recommended)">If you're using Poetry (see these instructions), upgrade with the following steps:
git pull
git fetch --tags
git checkout v1.14.0
poetry install
poetry run python label_studio/manage.py migrate
poetry run python label_studio/manage.py collectstatic
poetry run python label_studio/manage.py runserver
git pull
git fetch --tags
git checkout v1.14.0
pip install -r requirements.txt
python label_studio/manage.py migrate
python label_studio/manage.py collectstatic
python label_studio/manage.py runserver