Preserve local environment variables when linking with the Vercel CLI
By Steven Van ·
Vercel CLI's `vercel link` now updates only `VERCEL_OIDC_TOKEN` in `.env.local` instead of overwriting the whole file.
The Vercel CLI no longer overwrites .env.local when running vercel link. Previously, linking could clobber variables already in the file; now it only updates VERCEL_OIDC_TOKEN if present, or appends it if missing, and leaves everything else untouched. Run pnpm i -g vercel@latest to update, then run vercel link as usual.
Vercel
The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.
View Vercel →