feat(compute): deployments and rollback commands
Draft
CA
4d ago+521+521+012345678901234567890123456789-2-2-0123456789
What
insta compute deployments lists a compute service's deployments, and insta compute rollback puts an earlier one back with no rebuild. Needs InsForge/instacloud-platform#686.
How
rollbackwith no--topicks the newest eligible deployment before the live one.--totakes a full id or a unique 8 character prefix.- It prints what is restored and what is kept before asking, and needs
--yesoff a terminal, the same rule asinsta template rollback. - A backend without the routes gets a plain "not supported yet" error instead of a raw 404.
Verify
npm run typecheck && npm test: 2276 passed.
š¤ Generated with Claude Code
Summary by cubic
Adds insta compute deployments to list a compute service's deployment history and insta compute rollback to restore an earlier deployment without a rebuild. Requires InsForge/instacloud-platform#686; backends without the routes get a plain "not supported yet" error instead of a raw 404.
rollbackwith no--topicks the newest successful deployment before the live one that runs a different image;--toaccepts a full id or a unique 8-character prefix.- Restores the deployment's image, port, and start command (only the image for backfilled deployments) and keeps variables, scale, domains, volume, and databases.
- Pauses GitHub auto-deploy if it was on, until re-enabled in the console.
- Prints what is restored and kept before asking;
--yesis required off a terminal.