cnb-rs user show
cnb-rs user show <USERNAME>查看指定用户的档案详情(profile,含统计数据)。
输出格式与 cnb-rs user me 一致。
选项
<USERNAME>: 用户名(必填,CNB 平台完整 username,区分大小写)
继承的全局选项:
--json: 输出原始UsersResult
示例
bash
# 查指定用户档案
$ cnb-rs user show alice
# JSON 取关键字段
$ cnb-rs --json user show alice | jq '{username, follower_count, repo_count}'
# 用户不存在时的友好错误
$ cnb-rs user show non-existent-user
错误: {"errcode":5,"errmsg":"当前用户不存在"}用户名的完整形态
CNB 用户名在 OAuth 注册时常带后缀(如 alice_cnb.xyz),传短名(alice)可能 404。 如果不确定,可在 CNB Web 个人主页 URL 中查看完整 username。
另请参阅
- cnb-rs user me — 查自己档案
- cnb-rs user followers — 查指定用户的粉丝