pnpm token
Added in: v12.13.0
Manage authentication tokens on the configured registry.
Commands#
list#
pnpm token list
Aliases: ls
List all authentication tokens issued to the authenticated account. This is the default subcommand when none is provided.
revoke#
pnpm token revoke <id|token...>
Aliases: rm, delete, remove
Revoke one or more authentication tokens by their key, ID prefix, or token value.
create#
pnpm token create [--read-only] [--cidr <cidr>]
Create a new authentication token. pnpm asks for your account password. If standard input is not a terminal, pnpm reads the password from its first line.
Options#
--registry <url>#
The base URL of the npm registry.
--json#
Output results in JSON format.
-p, --parseable#
Output results in tab-separated table format.
--read-only#
Mark a created token as read-only.
--cidr <cidr>#
Restrict a created token to specific CIDR address ranges.
--otp <otp>#
One-time password for registries that require two-factor authentication.