Files
vercel__vercel-plugin/commands/env.md
T
2026-03-03 15:13:06 -07:00

893 B

description
description
Manage Vercel environment variables. Commands include list, pull, add, remove. Use to sync environment variables between Vercel and your local development environment.

Vercel Environment Variables

Manage environment variables for the current Vercel project.

Actions

Based on "$ARGUMENTS":

"list" or "ls" or no arguments

  • Run vercel env ls to show all environment variables

"pull"

  • Run vercel env pull to download env vars to .env.local
  • For production: vercel env pull .env.production.local --environment=production

"add "

  • Run vercel env add <NAME> and guide the user through setting the value
  • Ask which environments (production, preview, development)

"rm " or "remove "

  • Run vercel env rm <NAME> with confirmation

Always remind the user to add .env*.local to .gitignore to avoid committing secrets.