---
myst:
  html_meta:
    "description": "Run repoplone with uvx, pin its version, or add it to a project's development dependencies."
    "property=og:description": "Run repoplone with uvx, pin its version, or add it to a project's development dependencies."
    "property=og:title": "Install repoplone"
    "keywords": "Plone, repoplone, install, uv, uvx, CI"
---

(how-to-install)=

# Install repoplone

This guide shows you how to run repoplone, pin the version a project uses, and run a development checkout.

repoplone needs Python 3.11 or later and [uv](https://docs.astral.sh/uv/getting-started/installation/).
uv downloads a suitable Python when your system has none.

(how-to-install-uvx)=

## Run it with uvx

Run repoplone without installing it.

```shell
uvx repoplone --version
```

uvx downloads the latest release into a cache and runs it.
Run every command the same way, from anywhere inside the repository.

```shell
uvx repoplone versions current
```

(how-to-install-pin)=

## Pin the version a project uses

repoplone 2 is in alpha.
Its `repository.toml` specification can change between releases.
Pin the version in scripts and CI.
A new release of repoplone then cannot change a release you are about to cut.

```shell
uvx repoplone@2.0.0a2 versions current
```

In a `Makefile`, keep the version in one variable.

```make
REPOPLONE_VERSION ?= 2.0.0a2

.PHONY: release
release: ## Release the repository
	uvx repoplone@$(REPOPLONE_VERSION) release
```

In a GitHub Actions workflow, install uv first, then run uvx.

```yaml
- name: Install uv
  uses: astral-sh/setup-uv@v7

- name: Report versions
  run: uvx repoplone@2.0.0a2 versions current
```

(how-to-install-dev-dependency)=

## Add it to a project's development dependencies

A project that runs repoplone often can keep it in its own lockfile instead.
Add it to a development dependency group of the project's `pyproject.toml`.

```shell
uv add --dev "repoplone>=2.0.0a2"
```

The version specifier matters while repoplone 2 is in alpha.
Without it, uv picks the latest stable release, repoplone 1.

Then run it through the project's environment.

```shell
uv run repoplone versions current
```

(how-to-install-checkout)=

## Run a development checkout

To try an unreleased change, run repoplone from a local checkout.

```shell
uvx --no-cache --from /path/to/repoplone repoplone versions current
```

`--no-cache` makes uv build the checkout again.
Without it, uv reuses the build it made earlier from the same path while the version number has not changed, and runs the old code.

```{seealso}
- {doc}`authenticate`, before you publish a release.
- {doc}`/reference/cli`, for every command.
```
