rollback
2
总安装量
2
周安装量
#68616
全站排名
安装命令
npx skills add https://github.com/zerodeploy-dev/skills --skill rollback
Agent 安装分布
opencode
2
gemini-cli
2
claude-code
2
github-copilot
2
codex
2
kimi-cli
2
Skill 文档
Rollback ZeroDeploy Deployment
Rollback to a previous deployment version.
Steps
1. Read config
Check if zerodeploy.json exists in the project root. Extract org and site values.
If not found, ask the user for the org and site slugs.
2. List recent deployments
zerodeploy deployments list --json
(Site is resolved automatically from zerodeploy.json. Use positional <site> to override.)
Show the user the recent deployments so they can choose which one to rollback to.
3. Rollback
If the user specified a deployment ID:
zerodeploy rollback --to <deployment-id>
Otherwise, rollback to the previous deployment:
zerodeploy rollback
4. Verify
After rollback, confirm the active deployment has changed by checking the site URL.
Error Handling
| Exit Code | Meaning | Action |
|---|---|---|
| 1 | Auth error | Run zerodeploy login |
| 2 | Not found | Check org/site slugs |
| 3 | Validation error | No previous deployment exists |
User request
$ARGUMENTS