From c6d9fa3a9c9d8b18245fcaeed38b08d79e3cbb55 Mon Sep 17 00:00:00 2001 From: Alex Leventer Date: Sun, 22 Nov 2026 11:46:06 -0800 Subject: [PATCH] List the fly releases --json fields in the rollback guide --- blueprints/rollback-guide.mdx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/blueprints/rollback-guide.mdx b/blueprints/rollback-guide.mdx index a0ee8644c6..83d288d3a0 100644 --- a/blueprints/rollback-guide.mdx +++ b/blueprints/rollback-guide.mdx @@ -33,6 +33,36 @@ v41 2025-08-10T09:14Z registry.fly.io/myapp:deployment-01HYYYYY Pick the one before things went sideways. +#### Get releases as JSON + +For scripts, add `--json`: + +```bash +fly releases --app myapp --json +``` + +flyctl prints an array of the app's last 25 releases, newest first. Each release has these fields: + +| Field | Contents | +|---|---| +| `ID` | Release ID | +| `Version` | Release number as an integer, so `41` for `v41` | +| `Status` | Release status, such as `complete` | +| `Description` | Release description | +| `Reason` | Release reason | +| `Stable` | `true` or `false` | +| `ImageRef` | The image the release ran; pass it to `fly deploy --image` | +| `CreatedAt` | When the release was created, as an RFC 3339 timestamp | +| `User` | Who made the release: `ID`, `Name` and `Email` | + +`InProgress`, `DeploymentStrategy`, `Metadata`, `EvaluationID` and `User.EnablePaidHobby` also appear, but `fly releases` doesn't fetch them, so they're always `false`, `""`, `null`, `""` and `false`. + +For example, this prints the image of the release before the latest one: + +```bash +fly releases --app myapp --json | jq -r '.[1].ImageRef' +``` + --- ### Step 2: Deploy that exact image