Versions & rollback
Every successful deploy records a new version of the stack: the full
docker-compose.yml content and a JSON snapshot of its environment variables.
Browsing the history
Section titled “Browsing the history”| Interface | How |
|---|---|
| Web | stack ⋮ → Versions |
| TUI | Select the stack, press v |
| CLI | kaio-cli stack versions my-db |
Selecting a version other than the current one opens on Diff vs current:
the current compose file against the selected one, the variables a rollback
would add, change or remove, and the images it would pull or stop using.
File shows the version on its own, its compose file and its .env with
secrets masked.


Reviewing a deploy
Section titled “Reviewing a deploy”In the web UI, Edit doesn’t deploy directly: its button reads Review changes, and shows what is running now against what the deploy would write, with the same summary of variables and images. Deploy applies it, Back to editor returns to the editor with nothing lost. A new stack has nothing to compare against, so its dialog deploys directly.

The timeline
Section titled “The timeline”Stack ⋮ → Timeline lays the stack’s history on one time axis, in four lanes: its versions, its own events (deploys, updates, rollbacks), its containers’ state changes, and its images’ scans and update checks. Click a point, or its row in the list underneath, to read it. A version shows what it changed against the one before it, with a button that rolls back to it.

The events come from the latest 100 the server keeps across every stack, so a busy server shows a shorter history than a quiet one. The versions are always complete.
Rolling back
Section titled “Rolling back”kaio-cli stack rollback my-db 3In the TUI, open the version history with v, then press r on the target
version. In the web UI, the Versions dialog has a rollback button per row.
A rollback restores both the compose file and the environment snapshot, then redeploys. It is itself a deploy, so it produces a new version: the history is append-only and you can always roll forward again.
Deleting a version
Section titled “Deleting a version”kaio-cli stack version-rm my-db 3TUI: d on the version row. This only drops the snapshot; the running stack is
untouched.
Where it is stored
Section titled “Where it is stored”Versions live in the stack_versions table (stack_id, version, content,
env_snapshot), indexed on stack_id. Nothing is written to disk beyond the
current compose.yml and .env. The history is entirely in SQLite, and it is
deleted with the stack.
Related
Section titled “Related”Kaio, built by Régis Gaidot