feat(cli): add gram redeploy command#1721
Merged
simplesagar merged 9 commits intomainfrom Feb 28, 2026
Merged
Conversation
Add a Redeploy method that calls the generated Goa client's Redeploy endpoint, following the same pattern as the existing GetDeployment, GetLatestDeployment, and GetActiveDeployment wrappers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a RedeployDeployment method to the Workflow struct that triggers a redeployment of the currently loaded deployment. Follows the standard workflow pattern: checks Failed(), validates preconditions, calls the API client, and updates s.Deployment with the result. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Create the redeploy command that clones an existing deployment with the same assets. Supports --id to target a specific deployment (defaults to latest), --skip-poll to return immediately, and --json for machine- readable output. Register the command in the app's command list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove --latest flag that was declared but never read (latest is already the default when --id is omitted) - Reuse printDeploymentStatusJSON from status.go instead of duplicating the JSON marshal logic Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: b53f25d The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
chase-crumbaugh
approved these changes
Feb 27, 2026
…iled deploys The RedeployButton component was returning null for failed deployments that weren't the active deployment. This meant users had to navigate back to the deployments list to retry a failed deployment. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…error state Upgraded DeploymentsButton from tertiary to secondary variant so it's actually visible. When deployment errors exist, shows "Deployment Errors" with destructive styling linking to the failed deployment. Removed inline error badge from title in favor of this more prominent CTA button. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
qstearns
approved these changes
Feb 27, 2026
Replace the conditional that hid the button for non-completed/non-failed deployments with a catch-all "Redeploy" label so users can redeploy any deployment regardless of status. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Page.Section uses child.type identity to extract slot components. Wrapping Page.Section.CTA inside DeploymentsButton broke slot detection since the child type was DeploymentsButton, not PageSectionCTA. Move the CTA wrapper to the parent so the slot is a direct child of Page.Section. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove dead useFailedDeploymentSources() call from Sources component (now only called inside DeploymentsButton). Fixes eslint no-unused-vars CI failure. Add changeset for CLI and dashboard changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
🚀 Preview Environment (PR #1721)Preview URL: https://pr-1721.dev.getgram.ai
Gram Preview Bot |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
gram redeployCLI command that clones an existing deployment with the same assets--idto target a specific one--skip-pollto opt out), supports--jsonoutputChanges
cli/internal/api/deployments.go—Redeploy()wrapper method onDeploymentsClientcli/internal/workflow/workflow.go—RedeployDeployment()chainable workflow methodcli/internal/app/redeploy.go— NewnewRedeployCommand()CLI commandcli/internal/app/app.go— Register the commandUsage
Test plan
gram redeployredeploys the latest deployment and polls to completiongram redeploy --id <id>redeploys the specified deploymentgram redeploy --skip-pollreturns immediately after triggeringgram redeploy --jsonoutputs valid JSON deployment objectgram redeploywith no project/API key shows clear error message🤖 Generated with Claude Code