pnpm login
新增于:v11.0.0
🌐 Added in: v11.0.0
别名:adduser
🌐 Aliases: adduser
使用 npm 注册表进行身份验证。
🌐 Authenticate with an npm registry.
pnpm login [--registry <url>] [--scope <scope>]
支持基于网页的二维码登录以及传统的用户名/密码认证。
🌐 Supports web-based login with QR code as well as classic username/password authentication.
认证令牌被写入 <pnpm config>/auth.ini。
🌐 Auth tokens are written to <pnpm config>/auth.ini.
选项
🌐 Options
--registry <url>
用于身份验证的注册表。默认为配置的默认注册表。
🌐 The registry to authenticate with. Defaults to the configured default registry.
--scope <scope>
将凭据与指定的范围关联。将使用该范围的注册表。
🌐 Associate the credentials with the specified scope. The registry for that scope will be used.