caddi link
Already have a repo and a Vercel project? caddi link adopts them into Caddi — without touching your code.
Usage
Common invocations
What it does
- Reads the repo origin and the Vercel project linked to it.
- Asks which branches map to
production,staging, anddev. Creates the missing branches if you want. - Pulls the existing env vars from Vercel into the Caddi env-var store.
- Writes a
.caddi/config.jsonto the repo root.
What it doesn’t do
- It does not move env vars off Vercel — they remain the source of truth.
- It does not rewrite your branches.
- It does not install
@caddi/forms-sdkor AGENTS.md — see Create your own template for the recipe.
If the repo has fewer than three long-lived branches, Caddi can create the missing ones for you. We default to
main / staging / dev but every name is configurable.