env-vars

Manage Vercel environment variables via .env files and CLI commands.

246|42|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/vercel-labs/vercel-plugin --skill env-vars-vercel-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-vars
Source: https://github.com/vercel-labs/vercel-plugin/tree/main/skills/env-vars
Command: npx skills add https://github.com/vercel-labs/vercel-plugin --skill env-vars-vercel-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the management of Vercel environment variables, ensuring your applications have the correct configuration across different deployment environments.

Core Features & Use Cases

  • .env File Management: Understand the hierarchy and loading order of .env files for local development.
  • vercel env CLI: Learn to pull, add, list, and remove environment variables using the Vercel CLI.
  • OIDC Token Handling: Manage Vercel's OpenID Connect tokens for secure, keyless authentication.
  • Use Case: When setting up a new project or deploying to a new environment, use this Skill to ensure all necessary API keys and configuration values are correctly set and securely managed.

Quick Start

Use the env-vars skill to pull all environment variables for the production environment into your .env.local file.

Frequently Asked Questions about env-vars

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I pull environment variables for my Vercel project into a local .env file?

You can pull environment variables into a local `.env.local` file using the `vercel env pull` CLI command. This downloads the specified environment's configuration, ensuring your local development setup matches your Vercel deployments.

What is the loading order of .env files for local development on Vercel?

Vercel uses a specific hierarchy for loading `.env` files, prioritizing `.env.local` for local development overrides. Understanding this loading order prevents file overwrites and ensures the correct environment-specific settings are applied.

How does Vercel handle OIDC tokens for environment configuration?

Vercel manages OpenID Connect (OIDC) tokens to provide secure, keyless authentication for your deployments. This token lifecycle management allows automated systems to securely access resources without storing long-lived secrets.

Can I manage Vercel environment variables entirely through the CLI?

Yes, the `vercel env` CLI commands allow you to pull, add, list, and remove environment variables. This enables complete secrets management and environment-specific settings configuration directly from your terminal.

Why does my .env file get overwritten when pulling Vercel environment variables?

File overwrites occur when pulling environment variables into an existing file without targeting the correct local development hierarchy. Using `.env.local` as the target for `vercel env pull` prevents accidental overwrites of your base `.env` configuration.