vercel tokens
The vercel tokens command manages your personal authentication tokens. Tokens authenticate Vercel CLI commands and Vercel REST API requests on your behalf. They are scoped to your user account, and optionally to a single project. Use this command to list existing tokens, create new ones for scripts and CI environments, and revoke tokens you no longer need.
To deploy without a token or account, run vercel deploy --temporary. See Deploying without logging in.
vercel tokens [subcommand]Using the vercel tokens command to manage personal authentication tokens.
When called without a subcommand, vercel tokens runs list.
Lists your personal authentication tokens. This is the default subcommand, so vercel tokens and vercel tokens list are equivalent.
vercel tokens
vercel tokens list
vercel tokens list --jsonList your tokens. Use --json for machine-readable output.
| Option | Type | Description |
|---|---|---|
--json | Boolean | Output as JSON |
--limit <NUMBER> | Number | Maximum number of tokens to return (default 20, range 1-100) |
--next <CURSOR> | String | Show the next page of results, using the cursor from the previous page. When more tokens exist, the output ends with the command for the next page. With --json, the cursor is in pagination.next. |
Creates a new personal authentication token with the given name. The command prints the plaintext token once, so copy it before it scrolls away. To capture the token in a script, pass --json and read the bearerToken field.
vercel tokens create "CI deploy"Create a new token named CI deploy. The plaintext value is printed once.
The scope that the classic token needs depends on whether you pass --project:
| To create | Authenticate the CLI with |
|---|---|
A full-account token (no --project) | A token with the Full Account scope. The command rejects a team-scoped token. |
A project-scoped token (--project) | A token scoped to the team that owns the project. The command rejects a Full Account token. |
| Argument | Required | Description |
|---|---|---|
name | Yes | Display name for the token (helps you identify it later) |
| Option | Type | Description |
|---|---|---|
--json | Boolean | Output as JSON |
--project <PROJECT_ID> | String | Optional project ID to scope the token to a single project. The CLI forwards this value directly to the API; project names are not resolved. |
Revokes a personal authentication token by ID. Use vercel tokens list first to find the token ID.
vercel tokens revoke tok_abc123tok_abc123.In a terminal, the command asks you to confirm, because anything that uses the token stops working. To skip the prompt, for example in a script, pass --yes. With --json, the command revokes the token without asking.
| Argument | Required | Description |
|---|---|---|
id | Yes | ID of the token to revoke |
| Option | Type | Description |
|---|---|---|
--json | Boolean | Output as JSON |
-y, --yes | Boolean | Skip the confirmation prompt |
vercel tokens create "GitHub Actions deploy"Copy the plaintext value from the output and set it as VERCEL_TOKEN in your
CI environment.
Authenticate the CLI with a token that is scoped to the team that owns the project (see create), then pass the project ID:
vercel tokens create "Preview deploy bot" --project prj_abc123The resulting token can only act on prj_abc123. This narrows blast radius
if the token leaks.
vercel tokens list --jsonUseful for scripts that need to inspect or reconcile tokens.
vercel tokens revoke tok_abc123- Account tokens (Vercel Dashboard)
--tokenglobal option- Deploying from a CI/CD pipeline
The following global options can be passed when using the vercel tokens command:
For more information on global options and their usage, refer to the options section.
Was this helpful?