## `dinvolt vercel setup`

Connect Vercel after publishing your repository's `main` branch:

```sh npm
npx dinvolt vercel setup
```

```sh bun
bunx dinvolt vercel setup
```

```sh pnpm
pnpm dlx dinvolt vercel setup
```

```sh yarn
yarn dlx dinvolt vercel setup
```

The wizard selects a team and project, reviews environment variables and connects Git. **Connecting Git may trigger an initial build.** Prepare your database and published code first.

For prerequisites, environment mapping and step-by-step instructions, see [Deploy with Vercel](/guides/vercel).

### Run without prompts

Authenticate separately with the Vercel CLI or `VERCEL_TOKEN`, then provide a team, an existing or new project, an origin and `--apply`:

```sh npm
npx dinvolt vercel setup --team my-team --project my-project \
  --origin https://my-project.vercel.app --apply --json
```

```sh bun
bunx dinvolt vercel setup --team my-team --project my-project \
  --origin https://my-project.vercel.app --apply --json
```

```sh pnpm
pnpm dlx dinvolt vercel setup --team my-team --project my-project \
  --origin https://my-project.vercel.app --apply --json
```

```sh yarn
yarn dlx dinvolt vercel setup --team my-team --project my-project \
  --origin https://my-project.vercel.app --apply --json
```

| Option | Purpose |
| --- | --- |
| `--team <id-or-slug>` | Vercel team. Required without prompts. |
| `--project <id-or-name>` | Existing project. Must match any local link. |
| `--new-project <name>` | Create a project. Use instead of `--project`. |
| `--origin <url>` | Verified public HTTPS production origin. Required without prompts. |
| `--apply` | Apply changes and connect Git. Required without prompts. |
| `--git-remote <name>` | Git remote. Required when several exist. |
| `--preview` / `--no-preview` | Configure staging-backed Preview, or Production only (default without prompts). Existing Preview settings are preserved. |
| `--add-domain` | Associate the origin. Domain ownership and DNS must be ready. |
| `--replace <entries>` | Replace listed `target:KEY` variables. Preserve others. |
| `--email-file <path>` | Private password-recovery settings for admin projects. |

See [Vercel automation](/guides/vercel/automation#agents-and-scripts) for variable replacement and email-file examples.


