Linux command
cargo-owner 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List crate owners
cargo owner --list [crate_name]
Add owner by username
cargo owner --add [username] [crate_name]
Remove owner
cargo owner --remove [username] [crate_name]
Add GitHub team as owner
cargo owner --add github:[org]:[team] [crate_name]
说明
cargo owner manages the owners of a crate on crates.io or another registry. Owners have the ability to publish new versions, yank existing releases, and add or remove other owners. All ownership modifications require authentication via an API token. There are two types of owners: named users and teams. Named users have full rights including managing other owners, while teams can only publish and yank versions. GitHub teams can be added as owners using the `github:org:team` syntax, but only by a member of that team.
参数
- -a, --add _login_
- Add user or team as owner
- -r, --remove _login_
- Remove user or team as owner
- -l, --list
- List current owners
- --registry _name_
- Registry to use
- --index _url_
- Registry index URL
- --token _token_
- API token for authentication
- -v, --verbose
- Verbose output
- -q, --quiet
- Suppress output
FAQ
What is the cargo-owner command used for?
cargo owner manages the owners of a crate on crates.io or another registry. Owners have the ability to publish new versions, yank existing releases, and add or remove other owners. All ownership modifications require authentication via an API token. There are two types of owners: named users and teams. Named users have full rights including managing other owners, while teams can only publish and yank versions. GitHub teams can be added as owners using the `github:org:team` syntax, but only by a member of that team.
How do I run a basic cargo-owner example?
Run `cargo owner --list [crate_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --add _login_ do in cargo-owner?
Add user or team as owner