Repository navigation
List the fly releases --json fields in the rollback guide - #2681
Open
alexleventer wants to merge 1 commit into
Open
alexleventer wants to merge 1 commit into
alexleventer wants to merge 1 commit into
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claude (Claude Code) wrote this change from an agent-readiness review.
Summary of changes
Agents scripting a rollback guess at the
fly releases --jsonfield 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 ajqexample that pullsImageRefforfly deploy --image.Field names come from flyctl, not guesses:
fly releasesisinternal/command/apps/releases.go. With--jsonit encodes[]fly.Releasewithencoding/json, sorted byVersiondescending, limit 25.fly.Releaseandfly.Userin fly-go v0.12.6 (the version in flyctl'sgo.mod) have no json tags, so the keys are the Go field names (ID,Version,ImageRef,User.Email, ...).GetAppReleasesMachinesonly queries id, version, description, reason, status, imageRef, stable, user{id, email, name} and createdAt. That's whyInProgress,DeploymentStrategy,Metadata,EvaluationIDandUser.EnablePaidHobbyare always zero values.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; onlycompletewas seen forStatus, 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
Related Fly.io community and GitHub links
Notes