caddi promote
Move work forward through the environment chain. dev → staging or staging → production. Always through a PR.
Usage
Examples
What it does
- Opens a GitHub PR from
<from>into<to>. - Auto-generates a change summary from the commit log since the last promotion.
- Attaches the deploy URL of the source environment as the PR description preview.
- Watches the resulting Vercel deploy and prints the live URL when ready.
- Writes the SHA into the project’s promotion history (used by
revert).
Output
Approval gates
If the project has a client-approval gate on this transition (Pro), the PR is opened but merge is held until the client approves in the portal:
See Approval gates.
If your repo requires PR reviews via branch protection, Caddi surfaces the missing reviews on the promotion screen rather than failing. The CLI exits with code 2 and prints what’s blocking.