Skip to content
Dashboard

Preserve local environment variables when linking with the Vercel CLI

Software Engineer

The Vercel CLI now preserves your .env.local file when running vercel link. Previously, linking could overwrite variables already in the file. The CLI now updates VERCEL_OIDC_TOKEN if it exists, or appends it if missing, without touching anything else.

Run pnpm i -g vercel@latest to update, then run vercel link to get started. Learn more in the vercel link documentation.