Vercel Sync
Vercel Sync lets you push variables from your local .env file to a Vercel project, or pull the project's environment variables down to your local file — all without leaving VS Code.
Setup
1. Create a Vercel Token
- Go to vercel.com/account/tokens
- Click Create Token
- Give it a name (e.g.
vscode-env-manager) and choose a scope - Copy the token
2. Enter Token in VS Code
When you run Vercel Sync for the first time, the extension prompts you for:
- Vercel Token — stored securely in the OS keychain via VS Code SecretStorage
- Project ID — found in your Vercel project Settings → General → Project ID
These are saved and reused for all future syncs.
Pulling from Vercel
Run ENV Manager Pro: Vercel Sync → Pull. The extension:
- Fetches the list of env vars for your project via the Vercel REST API
- Decrypts each variable individually (Vercel encrypts values at rest)
- Merges them into your active
.envfile — new keys are added, existing keys are left unchanged unless you choose to overwrite
Pushing to Vercel
Run ENV Manager Pro: Vercel Sync → Push. The extension:
- Reads all variables from your active
.envfile - Lists the existing Vercel vars to get their IDs
- PATCHes existing variables (update in place)
- POSTs new variables that don't exist in Vercel yet
Environments
When pushing, the extension targets the preview environment by default. The Vercel API supports development, preview, and production — you can edit the push target in the extension's source if needed.
Security
The Vercel token is stored via vscode.SecretStorage — it is never written to your workspace files, never logged, and never sent anywhere except the Vercel API.
Push operations modify your live Vercel project. Always verify the Project ID before pushing to avoid updating the wrong project.