Skip to content

List the fly releases --json fields in the rollback guide - #2681

Open
alexleventer wants to merge 1 commit into
mainfrom
releases-json
Open

alexleventer wants to merge 1 commit into
mainfrom
releases-json

Conversation

@alexleventer

Copy link
Copy Markdown
Contributor

Claude (Claude Code) wrote this change from an agent-readiness review.

Summary of changes

Agents scripting a rollback guess at the fly releases --json field names. This adds a short "Get releases as JSON" subsection to Step 1 of the rollback guide. It has a table of the fields, a note on the ones that are always empty, and a jq example that pulls ImageRef for fly deploy --image.

Field names come from flyctl, not guesses:

  • fly releases is internal/command/apps/releases.go. With --json it encodes []fly.Release with encoding/json, sorted by Version descending, limit 25.
  • fly.Release and fly.User in fly-go v0.12.6 (the version in flyctl's go.mod) have no json tags, so the keys are the Go field names (ID, Version, ImageRef, User.Email, ...).
  • GetAppReleasesMachines only queries id, version, description, reason, status, imageRef, stable, user{id, email, name} and createdAt. That's why InProgress, DeploymentStrategy, Metadata, EvaluationID and User.EnablePaidHobby are always zero values.
  • I ran fly releases --json (flyctl v0.5.13) against a real app and the keys matched. I've left out the real output because it contains a user's email; only complete was seen for Status, so the page doesn't list other values.

The generated reference under flyctl/ is synced from flyctl's command help, which has no place for a JSON field list, so the list lives in this guide.

Preview

  • /blueprints/rollback-guide

Related Fly.io community and GitHub links

Notes

@alexleventer
alexleventer requested a review from a team as a code owner November 22, 2026 19:49
@mintlify

mintlify Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
fly-io 🟢 Ready View Preview Nov 22, 2026, 7:49 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

This branch was successfully deployed

1 active deployment
staging — c6d9fa3a Deployed Nov 22, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant