---
myst:
  html_meta:
    "description": "Check which Plone, Volto, or Aurora version each app of a repository uses, and upgrade one app's base package with repoplone deps."
    "property=og:description": "Check which Plone, Volto, or Aurora version each app of a repository uses, and upgrade one app's base package with repoplone deps."
    "property=og:title": "Upgrade Plone, Volto, or Aurora"
    "keywords": "Plone, repoplone, upgrade, Volto, Aurora, constraints, deps"
---

(how-to-upgrade-base-packages)=

# Upgrade Plone, Volto, or Aurora

This guide shows you how to upgrade the base package of one app in a repository.
The base package is Plone for a backend, and Volto or Aurora for a frontend.

Each app is a {term}`component`.
In a repository without `[[component]]` tables, the apps are `backend` and `frontend`.

(how-to-upgrade-base-packages-check)=

## See what is out of date

List the base package of each component.

```shell
uvx repoplone deps info
```

Compare the version each component pins with the latest release on PyPI or npm.

```shell
uvx repoplone deps check
```

The table has one row per component, with its base package, the version it uses, and the latest version.
A Python component that is not managed by uv shows `not managed by uv` instead of the latest version.

(how-to-upgrade-base-packages-upgrade)=

## Upgrade one component

Upgrade a component to the latest release of its base package.

```shell
uvx repoplone deps upgrade backend
```

Or to a version of your choice.

```shell
uvx repoplone deps upgrade backend 6.1.4
```

For a Node component, give the version in semantic versioning syntax, such as `19.0.0-alpha.7`.
repoplone refuses a Python-style version such as `19.0.0a7`, and suggests the right spelling.

repoplone edits the file where the component pins its base package.

| Component type | File repoplone edits |
|---|---|
| `python-plone` | The constraints and the pin of `Products.CMFPlone` in `pyproject.toml`, and `version.txt` when the component has one. |
| `node-volto` | The `@plone/volto` tag in `mrs.developer.json`, or the dependency in `package.json` when there is no `mrs.developer.json` entry. |
| `node-aurora` | The `@plone/aurora` entry of `configDependencies` in `pnpm-workspace.yaml`. Comments in the file stay. |

After the edit, repoplone runs `make <component>-install` to update the component's lockfile.
It then reminds you to add a news fragment, and names the folder.

(how-to-upgrade-base-packages-constraints)=

## Refresh the backend constraints

Plone publishes the versions of its own dependencies as constraints.
To pull the constraints of the Plone version the backend already uses, without changing that version, run this command.

```shell
uvx repoplone deps constraints backend
```

It only works for a backend managed by uv, with its dependencies in `pyproject.toml`.

(how-to-upgrade-base-packages-branch)=

## Track an unreleased branch

To test the backend against a branch of its base package, give the branch name with a leading `@`.

```shell
uvx repoplone deps upgrade backend @main
```

repoplone reads the constraints from the branch's `pyproject.toml` and pins the base package to the branch with a `[tool.uv.sources]` entry instead of a version.
The base package must declare its repository in its metadata for this to work.

(how-to-upgrade-base-packages-sync)=

## Update the lockfiles only

To refresh the lockfile of a component without changing any pin, run its install target through repoplone.

```shell
uvx repoplone deps sync volto
```

Without a component name, `deps sync` installs every component in turn.

```{seealso}
- {doc}`upgrade-a-volto-distribution`, when the frontend builds on a Volto distribution.
- {doc}`add-news-fragments`, to describe the upgrade in the changelog.
- {ref}`cli-deps`, for every option of the `deps` commands.
```
