---
title: "Update version numbers | Grafana Loki documentation"
description: "Update version numbers"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Update version numbers

Upgrade the Loki version to the new release version in documents, examples, jsonnets, etc.

## Before you begin

1. Determine the [VERSION\_PREFIX](../concepts/version/).
2. Skip this step if you are doing a patch release on old release branch.
   
   Example: Latest release branch is `release-2.9.x` but you are releasing patch version in `release-2.8.x` (or older)

## Steps

1. Upgrade the versions in the `release-VERSION_PREFIX` branch.
   
   Example commands:
   
   ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```none
   LOKI_NEW_VERSION=$VERSION ./tools/release_update_tags.sh
   ```
   
   > Note
   > 
   > Do not upgrade the version numbers in the `operator/` directory as @periklis and team have a different process to upgrade the Operator version.
