Account, Team & Project (CLI)
Authentication, switching teams, tokens, and project-level commands in the Vercel CLI.
These commands manage who you are acting as and which project you're operating on, rather than deployments themselves.
Authentication
vercel login # sign in (opens a browser / email flow)
vercel logout # sign out
vercel whoami # print the currently authenticated userTeams and scope
A Vercel account can belong to multiple teams. The active scope determines which team's projects you're working with.
vercel teams ls # list teams you belong to
vercel teams invite <email>
vercel switch # interactively change the active team scope
vercel switch <team-slug> # switch directlyYou can also override scope per command with the global --scope <slug> flag (see CLI overview).
Tokens
Tokens authenticate non-interactive environments like CI. Create and manage them in the dashboard; pass one with --token:
vercel tokens ls
vercel deploy --prod --token="$VERCEL_TOKEN" --yesTreat tokens like passwords — store them as CI secrets, never commit them.
Project commands
vercel project ls # list projects in the current scope
vercel project add <name> # create a project
vercel project rm <name> # remove a projectvercel link
Associates the current directory with a project, writing a .vercel/ directory (which holds project.json containing the project and org IDs). Required before project-scoped commands.
vercel link
vercel link --yesThe
orgIdin.vercel/project.jsonis also where tools look up your team ID when you don't pass one explicitly.
Handy extras
vercel open # open the current project's dashboard in a browser
vercel init # scaffold a starter project from an example
vercel git connect # connect a Git repository to the projectRelated
- CLI overview
- Deploying
- Back to Vercel overview
Managing Deployments (CLI)
Listing, inspecting, logging, promoting, rolling back, removing deployments, and running rolling releases.
Connecting a GitHub Organization to Vercel
Set up Vercel to deploy repositories owned by a company GitHub organization, with automatic production and preview deployments.