vercel login
The vercel login command allows you to login to your Vercel account through Vercel CLI.
You don't need an account or a login to deploy. Run vercel deploy --temporary to get a live URL, then claim the project later. See Deploying without logging in.
If you don't have a Vercel account yet, use vercel signup to create one.
vercel loginUsing the vercel login command to login to a Vercel account.
The following global options can be passed when using the vercel login command:
For more information on global options and their usage, refer to the options section.
Vercel CLI sends a token with every command. When Vercel no longer accepts that token, the command stops with an authentication error. A token stops working when it expires or when it's deleted from your Account Tokens page.
The error message tells you where the rejected token came from:
| Token source | Error message | Fix |
|---|---|---|
The session stored by vercel login | The specified token is not valid. Use `vercel login` to generate a new token. | Run vercel login again. |
The --token option | The token provided via the `--token` option is not valid. Please provide a valid token. | Create a new access token and pass it instead. |
The VERCEL_TOKEN environment variable | The token provided via VERCEL_TOKEN environment variable is not valid. Please provide a valid token. | Create a new access token and update the variable where it's stored, such as your CI/CD provider's secrets. |
On your own machine, vercel login starts a new session, and your next command uses it. In a CI/CD environment, nobody can complete the login prompt, so authenticate with a token and replace it before it expires. Run vercel whoami to confirm which account the CLI is authenticated as.
Was this helpful?