Skip to main content
Version: 11.x

pnpm logout

新增于:v11.0.0

🌐 Added in: v11.0.0

从 npm 注册表注销。撤销注册表上的身份验证令牌并将其从本地身份验证配置文件中移除。

🌐 Log out of an npm registry. Revokes the authentication token on the registry and removes it from the local auth config file.

pnpm logout [--registry <url>] [--scope <scope>]

如果提供了作用域,将使用与该作用域关联的注册表。

🌐 If a scope is provided, the registry associated with that scope is used.

该令牌已从 <pnpm config>/auth.ini 中移除。

🌐 The token is removed from <pnpm config>/auth.ini.

选项

🌐 Options

--registry <url>

要注销的注册表。默认为配置的默认注册表。

🌐 The registry to log out from. Defaults to the configured default registry.

--scope <scope>

使用与给定范围相关的注册表。

🌐 Use the registry associated with the given scope.