跳转到内容

cnb-rs user

cnb-rs user <subcommand>

用户档案 / 邮箱 / 粉丝 / 关注 / 活动的统一入口。

能力分组

分组子命令
档案me / show / update
邮箱emails
社交followers / following
活动activities / activity-detail

示例

bash
# 查自己档案
$ cnb-rs user me

# 查其他用户档案
$ cnb-rs user show <username>

# 更新自己档案(仅提供的字段会被更新)
$ cnb-rs user update --bio "Building stuff" --company "Acme"

# 查邮箱列表
$ cnb-rs user emails

# 查当前用户的粉丝 / 关注
$ cnb-rs user followers
$ cnb-rs user following

# 查活动汇总与仓库活动详情
$ cnb-rs user activities
$ cnb-rs user activity-detail --type commit --repo org/repo --date 202501

区别于 cnb-rs info

cnb-rs info 是「当前用户 + 当前仓库」组合视图(需 --repo), cnb-rs user me 是「纯当前用户档案」(不依赖 repo),互补不冲突。

另请参阅

Released under the MIT License.