vercel-env-sync

Synchronize and validate environment variables between local files and Vercel deployments.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/JordiNodeJS/.github-config --skill vercel-env-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-env-sync
Source: https://github.com/JordiNodeJS/.github-config/tree/main/.github/skills/vercel-env-sync
Command: npx skills add https://github.com/JordiNodeJS/.github-config --skill vercel-env-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vercel-cli, and includes scripts (resource) components.

What problem does it solve?

This skill streamlines the management of environment variables by syncing local .env files with Vercel deployments and validating configurations across environments, reducing deployment risks and manual toil.

Core Features & Use Cases

  • Syncs local and Vercel env vars across production, preview, and development to ensure consistency.
  • Pulls Vercel variables into local files for development and testing.
  • Audits and validates environment variables, auto-detects sensitive variables, creates backups before modifications, and supports dry-run and force-update options.
  • Integrates with CI/CD to enforce environment readiness during pipelines.

Quick Start

  • Navigate to the skill directory: cd .github/skills/vercel-env-sync
  • Make scripts executable: chmod +x scripts/.sh lib/.sh
  • Verify health: source lib/env-functions.sh && vercel::env::health_check
  • Audit: ./scripts/env-audit.sh --json > audit.json
  • Sync all environments: ./scripts/env-push.sh --all-envs

Frequently Asked Questions about vercel-env-sync

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

FAQPage Schema
How do I sync local .env files with Vercel deployment environments?

You can sync local .env files with Vercel deployments by running Bash scripts that push or pull variables across production, preview, and development environments. This ensures configuration consistency and reduces manual toil.

What is the best way to audit environment variables for sensitive data before a Vercel deployment?

Auditing environment variables for sensitive data involves running a Bash-based script that auto-detects sensitive values and validates configurations. The audit can output a JSON file to assess environment readiness before deployment.

Does Vercel CLI version 33 or higher support pushing environment variables across all environments at once?

Yes, modern Vercel CLI 33+ supports pushing environment variables across all environments at once. By using a Bash function library with the CLI, you can execute a single script to sync production, preview, and development environments simultaneously.

Can I integrate environment variable validation into CI/CD pipelines for Vercel deployments?

You can integrate environment variable validation into CI/CD pipelines by executing Bash scripts during the pipeline stages. This enforces environment readiness by validating configurations and auto-detecting sensitive variables before deployment proceeds.

How do I safely update Vercel environment variables without losing existing configurations?

To safely update Vercel environment variables, use scripts that create backups before modifications and offer dry-run options. This allows you to validate configuration changes and auto-detect sensitive variables without risking existing deployment setups.

Why does syncing environment variables locally fail when using outdated Vercel CLI versions?

Syncing environment variables fails with outdated Vercel CLI versions because the Bash function library requires modern CLI 33+ features to properly validate values and manage push/pull workflows across production, preview, and development environments.