# Releases and versions

Source: https://dropshelf.ai/docs/reference/project/releases

How dropshelf numbers its releases, what each kind of release promises to operators and members, and how the CLI keeps in step with an instance.

This page explains how dropshelf numbers its releases and what each kind of release promises. It is
for operators who plan upgrades and for members whose CLI and agents depend on an instance.
[Upgrade dropshelf](/docs/self-host/operate/upgrade) has the procedure.

## One version for everything [#one-version-for-everything]

The server, its image, the Helm chart and the `dropshelf` CLI carry one version, made by one git
tag. The tag `v1.4.2` builds the image `v1.4.2`, the chart `1.4.2` and the CLI `v1.4.2`. The server
and the CLI are tested as a pair.

A release that changes nothing in the CLI still ships the CLI, rebuilt with the new version. Its
release notes say that the CLI's code is unchanged, so nobody needs to upgrade for it.

Versions follow [semantic versioning](https://semver.org): `vMAJOR.MINOR.PATCH`. A pre-release adds a
suffix, such as `v1.5.0-rc.1`.

## Release lines [#release-lines]

A release line is a major and minor version with all its patches. The line `v1.4` holds `v1.4.0`,
`v1.4.1` and `v1.4.2`. An instance runs one line and upgrades one line at a time.

Within a line, every release is interchangeable with every other:

- A CLI from any patch of a line works with a server from any patch of the same line.
- `dropshelf upgrade` installs the newest patch of the instance's line. A CLI fix shipped as `v1.4.3`
  therefore reaches the members of an instance still on `v1.4.0`.
- An operator moves between patches of a line at will, forwards or back, with no migration to plan.

Every rule below exists to keep that true.

## What each kind of release promises [#what-each-kind-of-release-promises]

The following table sums up the promise of each kind of release:

| Release | Example | What it may do |
| --- | --- | --- |
| Patch | `v1.4.2` to `v1.4.3` | Fixes only. |
| Minor | `v1.4.2` to `v1.5.0` | Adds. From 1.0, everything that worked keeps working. |
| Major | `v1.x` to `v2.0.0` | Removes or breaks, and only what a minor release announced. |

### Patch [#patch]

A patch makes the software do what its line already said it does. It carries bug fixes, security
fixes, performance work, clearer messages, documentation fixes and dependency updates.

A patch adds no route, field, tool, argument, command, flag, configuration key or metric. A patch of
the CLI must work against the line's `.0` server, so it may not use anything a later patch added.

A patch carries no database migration, unless a security or data-loss fix needs one. Such a migration
is safe for every earlier patch of the line, and the release notes say so first. A fix that changes
behaviour people may rely on is a patch only when the documentation already described the fixed
behaviour.

### Minor [#minor]

A minor release adds features, routes and fields, MCP tools and optional arguments, CLI commands and
flags, configuration keys and metrics. A new configuration key has a default that keeps the current
behaviour. Its migrations are safe for the previous line's binary, which keeps a rolling update
working.

From 1.0, a client written for `v1.4` notices `v1.5` only through what it gains. Clients ignore
fields they do not know, so a new response field is safe. A new required request field is not, so a
minor never adds one.

A minor release may mark something for removal once its replacement exists. The release notes and
the documentation say when it goes. A changed default, such as a feature turned on for everyone or a
stricter limit, comes first in the release notes, with the setting that restores the old behaviour.

### Major [#major]

From 1.0, a major release removes or breaks, and only what a minor release announced at least one
line before. It may remove a route, field, tool, command, flag or configuration key. It may change
what one means, its type or a status it answers. It may carry a migration the previous line's binary
cannot run against. A new API version, such as `/api/v2`, is served beside the old one where it can
be, so integrations move on their own schedule.

### Before 1.0 [#before-10]

Until `v1.0.0`, the API is still taking shape, and a minor release such as `v0.4` to `v0.5` may break
as well as add. The patch rules hold in full: a `v0.4.x` patch adds and breaks nothing. The release
notes of a minor list every break first, with what to do about it. A member's CLI belongs on the
instance's minor line.

## The surfaces a version promises about [#the-surfaces-a-version-promises-about]

A change is judged by what it does to the things other people build on. These are the surfaces,
and who depends on each:

| Surface | Who depends on it |
| --- | --- |
| The [REST API](/docs/reference/rest) at `/api/v1`: routes, fields, statuses and problem types | The CLI, the dashboard, scripts and integrations |
| The [MCP](/docs/reference/mcp) tools, their arguments and answers | Agents and their hosts |
| The [in-page JavaScript API](/docs/reference/javascript-api), `dropshelf.js` | Every published drop |
| How a drop is served: addresses, headers and the preview host | Visitors and the drops themselves |
| The [CLI](/docs/reference/cli)'s commands, flags, exit codes and `--json` output | Members and CI jobs |
| A folder's `.dropshelf/` files, `link.json` and `base.json` | Every linked folder |
| [Configuration](/docs/reference/configuration) keys, their `DROPSHELF_*` variables and defaults | Operators |
| The [Helm chart values](/docs/reference/helm-values) | Operators |
| The database schema and its migrations | The rolling update |
| Metric names and log fields | Operators' dashboards and alerts |
| The guides the server gives agents | Agents, which follow them literally |

## The minimum CLI [#the-minimum-cli]

Every answer from the control plane names the server's version. Each member's CLI notices an upgrade
on its next command. When the CLI is a minor version or more apart, it prints one line suggesting
`dropshelf upgrade`. A CLI a patch apart says nothing.

A server may also name the oldest CLI it accepts. Below that minimum, the server answers `426` and
tells the member to run `dropshelf upgrade`. A release raises the minimum only in a minor or major
release. It does so only when its API change would make an older CLI do harm, such as write wrong
data or lose a file. The release notes say so.

A CLI that lacks a newer command needs no minimum. The command it does not have is the only thing it
cannot do.

To install the newest patch of the instance's line, run:

```bash
dropshelf upgrade
```

`dropshelf upgrade --latest` installs the newest release of any line instead. `dropshelf upgrade
--check` only reports whether another version would be installed. The
[CLI reference](/docs/reference/cli#upgrade) has every flag.

## Pre-releases [#pre-releases]

A pre-release, `vX.Y.Z-rc.N`, publishes the image, the chart and the CLI under its own version. It
never becomes the image's `:latest` tag or GitHub's latest release. `dropshelf upgrade` never chooses
one. A pre-release installs only when named, as in `dropshelf upgrade --to v1.5.0-rc.1`.

## Related topics [#related-topics]

- [Upgrade dropshelf](/docs/self-host/operate/upgrade)
- [CLI commands](/docs/reference/cli)
- [How dropshelf works](/docs/reference/project/architecture)
- [Security model](/docs/reference/project/security)
