Where Does Vercel CLI Store Auth and Config?
Vercel CLI's global com.vercel.cli folder with auth.json plus per project .vercel links.
Last updated
Vercel CLI splits global from project state. Auth tokens and team scope live in a com.vercel.cli folder under the OS data home, while each linked repo keeps a .vercel directory with project IDs.
The global files generate themselves, so hand edits are rarely needed. The one rule that matters: never publish auth.json, since it grants Vercel access as you.
Where Vercel stores this, by platform
%APPDATA%\Roaming\xdg.data\com.vercel.cli\auth.json
Odd nested XDG path is correct. config.json with currentTeam sits beside it. Per project link data in [Repo]/.vercel/project.json.
~/Library/Application Support/com.vercel.cli/auth.json
Same pair of files. Override the whole directory per command with vercel --global-config /path when isolating CI identities.
~/.local/share/com.vercel.cli/auth.json
Under XDG_DATA_HOME or ~/.local/share. Disable metrics with collectMetrics false in config.json if telemetry bothers you.
Frequently asked questions
How do I log Vercel CLI out everywhere on this machine?
Delete auth.json from the com.vercel.cli folder. Next command prompts a fresh login, and old tokens die with the file.
What is the .vercel folder in my repo?
The project link: org and project IDs from vercel link. It is safe to gitignore and regenerate, unlike the global auth file.
Notice an outdated path? Let us know.