pnpm owner
新增于:v11.1.0
🌐 Added in: v11.1.0
别名:owners
🌐 Aliases: owners
管理注册表上的软件包所有者。
🌐 Manages package owners on the registry.
命令
🌐 Commands
ls
pnpm owner ls <package>
别名:list
🌐 Aliases: list
列出一个包的所有拥有者。如果没有提供其他子命令,这是默认的子命令。
🌐 List all owners of a package. This is the default subcommand if no other subcommand is given.
add
pnpm owner add <package> <user>
将用户添加为软件包的所有者。需要身份验证。
🌐 Add a user as an owner of a package. Requires authentication.
rm
pnpm owner rm <package> <user>
从软件包的所有者列表中移除用户。需要身份验证。
🌐 Remove a user from the list of owners of a package. Requires authentication.
选项
🌐 Options
--registry <url>
用于操作的 npm 注册表的基础 URL。对于正在修改的包,会遵循每个作用域和命名注册表(通过 registries 和 namedRegistries 配置)。
🌐 The base URL of the npm registry to use for the operation. Per-scope and named registries (configured via registries and namedRegistries) are respected for the package being modified.
--otp <otp>
当注册表要求两因素认证时,此选项提供一次性密码。
🌐 When the registry requires two-factor authentication, this option supplies a one-time password.