lift rollback
Rollback to a previous deployment image with history of up to 5 versions.
lift rollback
Rollback to a previous deployment image. Maintains a history of up to 5 previous images tagged as prev1 through prev5. Supports both standalone (Dockerfile/Nixpacks) and Docker Compose projects.
Subcommands
| Subcommand | Description |
|---|---|
lift rollback list | List available deployment images with tags, creation dates, and sizes |
lift rollback to [tag] | Rollback to a specific image tag. Defaults to prev1 (previous deploy) if no tag specified |
lift rollback list
List all available deployment images on the server for the current project.
lift rollback list
lift rollback list --output jsonl
Example output:
Available images for myapp:
TAG CREATED SIZE
latest 2026-02-21 10:00:00 245MB
prev1 2026-02-20 14:30:00 243MB
prev2 2026-02-19 09:15:00 240MB
lift rollback to [tag]
Rollback to a specific image tag. If no tag is provided, defaults to prev1 (the previous deployment).
For standalone projects (Dockerfile/Nixpacks), replaces running containers with the target image while preserving replica count and environment variables.
For Docker Compose projects, creates a temporary override file that sets the image instead of building, then runs docker compose up -d.
# Rollback to previous version (prev1)
lift rollback to
# Rollback to a specific tag
lift rollback to prev2
A confirmation prompt is shown before executing the rollback.
Related
- lift push - Deploy your application
- lift status - Check deployment status