由注册表生成;Agent 指定 --profile prod --json。
全局:--profile、--base-url、--timeout、--pretty、--json、--no-pretty、--help、--allow-profile-mismatch;ch --version 离线输出版本。--request-id 只在 ch ai * 写命令上有效。支持 JSON 载荷的写命令可用 -d/--data;--request-id 只用于能力目录标注支持的动作。
数据分析需要独立授权,参见 数据分析指南。
通用兜底:调用任意 API 端点
ch api <METHOD> <path> [-q key=value ...] [-d <json|@file>] [-H "Name: value" ...] [--public]参数:-H、--allow-profile-mismatch、--base-url、-d、--help、--json、--pretty、--profile、--public、-q、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
登录并保存会话(token 落盘 0600,含滚动续期自动换存)
ch login [--studentNo <学号>] [--password <密码>] [--profile local|prod] [--show-token]接口:POST /auth/login。
参数:--allow-profile-mismatch、--base-url、--help、--json、--password、--pretty、--profile、--show-token、--studentNo、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
查看当前会话与管理员权限(adminLevel / authorizedGroups)
ch whoami接口:GET /admin/profile。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
删除本地会话文件(不影响服务端 token,直至自然过期)
ch logout参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
查看当前会话与管理员权限(adminLevel / authorizedGroups)
ch auth status接口:GET /admin/profile。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
招新总览统计(报名/录取/待处理/场次占用)
ch dashboard [--pretty]接口:GET /admin/dashboard。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
组别列表
ch groups list [--pretty]接口:GET /groups。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
创建组别(SUPER/SYSTEM)
ch groups create --group-name 名称 [--introduction 简介] [--requirement 要求≤65字]接口:POST /groups。
参数:--allow-profile-mismatch、--base-url、-d、--data、--group-name、--help、--introduction、--json、--pretty、--profile、--requirement、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
更新组别
ch groups update <id> --group-name 名称 [--introduction 简介] [--requirement 要求≤65字]接口:PUT /groups/{id}。
参数:--allow-profile-mismatch、--base-url、-d、--data、--group-name、--help、--introduction、--json、--pretty、--profile、--requirement、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
删除组别(SUPER/SYSTEM)
ch groups delete <id>接口:DELETE /groups/{id}。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
候选人分页列表(后端过滤分页;全部筛选 AND)
ch candidates list [--page N] [--size N] [--keyword 关键词] [--status 1|2|3] [--second-round-group-id N] [--third-round-group-id N] [--third-round-choice-state ALL|SELECTED|UNSELECTED] [--starred true|false] [--starred-admin-id N] [--starred-by-me true|false]接口:GET /admin/users/info/page。
参数:--allow-profile-mismatch、--base-url、--help、--json、--keyword、--page、--pretty、--profile、--second-round-group-id、--size、--starred、--starred-admin-id、--starred-by-me、--status、--third-round-choice-state、--third-round-group-id、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
候选人全量列表(旧接口,后端最多返回 200 条)
ch candidates list-all [--pretty]接口:GET /admin/users/info。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
候选人档案详情
ch candidates get <userId>接口:GET /users/{userId}/info。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
候选人报名记录
ch candidates application <userId>接口:GET /users/{userId}/application。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
候选人的全部面试记录
ch candidates interviews <userId>接口:GET /users/{userId}/interviews。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
候选人的全部面评
ch candidates evaluations <userId>接口:GET /admin/candidates/{userId}/evaluations。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
特别关注面试官列表(含打星统计)
ch candidates starred-admins [--pretty]接口:GET /admin/candidates/starred-admins。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
候选人二轮自选组别
ch candidates second-round-groups <userId>接口:GET /users/{userId}/second-round-groups。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
候选人三面选组上下文
ch candidates third-round-choice <userId>接口:GET /admin/users/{userId}/third-round-choice。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
报名记录分页列表
ch applications list [--page N] [--size N]接口:GET /admin/applications/page。
参数:--allow-profile-mismatch、--base-url、--help、--json、--page、--pretty、--profile、--size、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
报名记录全量列表(旧接口,后端最多返回 200 条)
ch applications list-all [--pretty]接口:GET /admin/applications。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
二轮考核组别自选全量列表
ch second-round-choices [--pretty]接口:GET /admin/second-round-choices。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
修改候选人三面最终组别(原因必填;version 自动重读重试)
ch candidates set-third-round-choice <userId> --group-id N --reason 原因 [--version N]接口:PUT /admin/users/{userId}/third-round-choice。
参数:--allow-profile-mismatch、--base-url、-d、--data、--group-id、--help、--json、--pretty、--profile、--reason、--timeout、--version。未知、不适用参数及多余位置参数在请求前返回 exit 2。
切换对候选人的特别关注标记
ch candidates star <userId> --starred true|false接口:POST /admin/candidates/{userId}/star。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--pretty、--profile、--starred、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
手动调整成员资料(仅更新传入字段)
ch candidates update <userId> -d '{"realName":"张三","phone":"138..."}'接口:PUT /users/{userId}/info。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
调整报名状态(仅未产生面试记录时可用)
ch candidates application-status <userId> --status 1|2|3接口:PATCH /admin/applications/{userId}/status。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--pretty、--profile、--status、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
设置候选人二轮考核组别
ch candidates set-second-round-groups <userId> --group-ids 1,2接口:PUT /users/{userId}/second-round-groups。
参数:--allow-profile-mismatch、--base-url、-d、--data、--group-ids、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
解除候选人微信绑定(原因必填;后端同时失效其会话)
ch candidates unbind-wechat <userId> --reason 原因接口:DELETE /admin/users/{userId}/wechat-binding。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--pretty、--profile、--reason、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
考核方案列表(一面/二轮/三面方案)
ch plans list [--round 1|2|3] [--scope-group-id N] [--status 1|2] [--pretty]接口:GET /admin/interview-plans。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--round、--scope-group-id、--status、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
创建考核方案
ch plans create --round 1|2|3 --scope-group-id N --assessment-content 内容 [--assessment-image-url U] [--assessment-file-url U] [--assessment-file-name 名] [--pass-text-content T] [--pass-image-url U] [--fail-text-content T] [--fail-image-url U] [--booking-start-time "2026-09-28 14:00"] [--booking-end-time "..."] [--publish-mode REALTIME|SCHEDULED] [--publish-time "..."] [-d json]接口:POST /admin/interview-plans。
参数:--allow-profile-mismatch、--assessment-content、--assessment-file-name、--assessment-file-url、--assessment-image-url、--base-url、--booking-end-time、--booking-start-time、-d、--data、--fail-image-url、--fail-text-content、--help、--json、--pass-image-url、--pass-text-content、--pretty、--profile、--publish-mode、--publish-time、--round、--scope-group-id、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
更新考核方案(未停用且无场次时可改)
ch plans update <planId> [--assessment-content 内容] [--status 1|2] [--publish-mode ...] [--publish-time ...] [-d json]接口:PUT /admin/interview-plans/{planId}。
参数:--allow-profile-mismatch、--assessment-content、--assessment-file-name、--assessment-file-url、--assessment-image-url、--base-url、--booking-end-time、--booking-start-time、-d、--data、--fail-image-url、--fail-text-content、--help、--json、--pass-image-url、--pass-text-content、--pretty、--profile、--publish-mode、--publish-time、--status、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
删除已停用且无场次的考核方案
ch plans delete <planId>接口:DELETE /admin/interview-plans/{planId}。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
面试场次列表
ch slots list [--round 1|2|3] [--scope-group-id N] [--plan-id N] [--status 1|2] [--pretty]接口:GET /admin/interview-slots。
参数:--allow-profile-mismatch、--base-url、--help、--json、--plan-id、--pretty、--profile、--round、--scope-group-id、--status、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
场次签到二维码/口令
ch slots qr <slotId>接口:GET /admin/interview-slots/{slotId}/checkin-qr。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
创建面试场次
ch slots create --plan-id N --slot-time "2026-09-28 14:00" --location 教学楼A301 --capacity 5接口:POST /admin/interview-slots。
参数:--allow-profile-mismatch、--base-url、--capacity、-d、--data、--help、--json、--location、--plan-id、--pretty、--profile、--slot-time、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
更新面试场次
ch slots update <slotId> [--slot-time "..."] [--location 地点] [--capacity N] [--status 1|2]接口:PUT /admin/interview-slots/{slotId}。
参数:--allow-profile-mismatch、--base-url、--capacity、-d、--data、--help、--json、--location、--pretty、--profile、--slot-time、--status、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
关闭场次(停止预约)
ch slots close <slotId>接口:PUT /admin/interview-slots/{slotId}/close。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
删除场次
ch slots delete <slotId>接口:DELETE /admin/interview-slots/{slotId}。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
面试名单(按轮次/组别/场次/结果筛选)
ch interviews list --round 1|2|3 [--group-id N] [--slot-id N] [--result 1|2|3] [--pretty]接口:GET /admin/interviews。
参数:--allow-profile-mismatch、--base-url、--group-id、--help、--json、--pretty、--profile、--result、--round、--slot-id、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
跨轮次搜索面试记录与面评关键词
ch interviews search [--keyword 关键词] [--round N] [--group-id N] [--result 1|2|3] [--pretty]接口:GET /admin/interviews/search。
参数:--allow-profile-mismatch、--base-url、--group-id、--help、--json、--keyword、--pretty、--profile、--result、--round、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
按轮次/组别的面试统计
ch interviews statistics [--round N] [--group-id N] [--pretty]接口:GET /admin/interviews/statistics。
参数:--allow-profile-mismatch、--base-url、--group-id、--help、--json、--pretty、--profile、--round、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
管理员改约候选项(可改约的场次)
ch interviews reschedule-options <interviewId>接口:GET /admin/interviews/{interviewId}/reschedule-options。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
录入/修改单条面试结果
ch interviews result <interviewId> --result 1|2|3 [--remark 备注]接口:PATCH /admin/interviews/{interviewId}/result。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--pretty、--profile、--remark、--result、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
补录/修正面试到场状态
ch interviews attendance <interviewId> --status ARRIVED|LATE|NO_SHOW|NOT_CHECKED_IN|CANCELLED [--reason 原因]接口:POST /admin/interviews/{interviewId}/attendance。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--pretty、--profile、--reason、--status、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
管理员为候选人改约场次
ch interviews reschedule <interviewId> --slot <slotId>接口:PUT /admin/interviews/{interviewId}/slot。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--pretty、--profile、--slot、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
批量录入面试结果
ch interviews batch-result -d <json|@file> # {"round":1,"groupId":2,"results":[{"interviewId":11,"result":1,"remark":"..."}]}接口:POST /admin/interviews/batch-result。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
提交面试评价(评语必填,评分 0-100 整数选填)
ch evaluations add <interviewId> --content 评语 [--score 85]接口:POST /admin/interviews/{interviewId}/evaluations。
参数:--allow-profile-mismatch、--base-url、--content、-d、--data、--help、--json、--pretty、--profile、--score、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
横幅通知列表
ch notifications list [--scope-type ALL|ROUND|GROUP|ROUND_GROUP|SLOT] [--status 1|2] [--pretty]接口:GET /admin/notifications。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--scope-type、--status、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
发布横幅通知
ch notifications create --title 标题 --content 内容 --notice-level INFO|WARNING|URGENT --scope-type ALL|ROUND|GROUP|ROUND_GROUP|SLOT [--target-round N] [--target-group-id N] [--target-slot-id N] [--start-time "..."] [--end-time "..."] [--status 1|2]接口:POST /admin/notifications。
参数:--allow-profile-mismatch、--base-url、--content、-d、--data、--end-time、--help、--json、--notice-level、--pretty、--profile、--scope-type、--start-time、--status、--target-group-id、--target-round、--target-slot-id、--timeout、--title。未知、不适用参数及多余位置参数在请求前返回 exit 2。
编辑横幅通知
ch notifications update <id> [--title ...] [--content ...] [--notice-level ...] [--scope-type ...] [--start-time ...] [--end-time ...]接口:PUT /admin/notifications/{id}。
参数:--allow-profile-mismatch、--base-url、--content、-d、--data、--end-time、--help、--json、--notice-level、--pretty、--profile、--scope-type、--start-time、--status、--target-group-id、--target-round、--target-slot-id、--timeout、--title。未知、不适用参数及多余位置参数在请求前返回 exit 2。
上/下线路横幅通知
ch notifications status <id> --status 1|2接口:PATCH /admin/notifications/{id}/status。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--pretty、--profile、--status、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
删除横幅通知
ch notifications delete <id>接口:DELETE /admin/notifications/{id}。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
面试官工作台:按学号/姓名搜索候选人
ch assistant search --keyword 张三接口:GET /admin/assistant/search。
参数:--allow-profile-mismatch、--base-url、--help、--json、--keyword、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
面试官工作台:候选人一屏档案(含全部场次与历史评价)
ch assistant profile <userId>接口:GET /admin/assistant/candidates/{userId}。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
面试官工作台:现场打分提交(结果+评语必填)
ch assistant submit --interview-id N --result 1|2|3 --evaluation-content 评语 [--score 85] [--starred true|false]接口:POST /admin/assistant/submit。
参数:--allow-profile-mismatch、--base-url、-d、--data、--evaluation-content、--help、--interview-id、--json、--pretty、--profile、--result、--score、--starred、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
上传图片(JPG/PNG/WebP,≤2MB)
ch uploads image <文件路径>接口:POST /admin/uploads。
参数:--allow-profile-mismatch、--base-url、--file、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
上传考核附件(PDF/DOC/DOCX/XLS/XLSX/CSV/ZIP/RAR/7Z/TAR/MD,≤10MB)
ch uploads assessment <文件路径>接口:POST /admin/uploads/assessment-files。
参数:--allow-profile-mismatch、--base-url、--file、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
上传 AI Coding 题包附件(≤10MB)
ch uploads ai-attachment <文件路径>接口:POST /admin/ai-coding/paper-attachments。
参数:--allow-profile-mismatch、--base-url、--file、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
下载 AI Coding 题包附件到本地文件
ch uploads attachment-download <attachmentId> --name 文件名 [--out 输出路径]接口:GET /admin/ai-coding/paper-attachments/{attachmentId}。
参数:--allow-profile-mismatch、--base-url、--force、--help、--json、--name、--out、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
管理员账号列表
ch accounts list [--pretty]接口:GET /admin/accounts。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
创建分级管理员账号
ch accounts create --studentNo 10位学号 --password 密码 [--real-name 姓名] --admin-level SUPER|REGULAR|INTERVIEWER [--authorized-group-ids 1,2]接口:POST /admin/accounts。
参数:--admin-level、--allow-profile-mismatch、--authorized-group-ids、--base-url、-d、--data、--help、--json、--password、--pretty、--profile、--real-name、--studentNo、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
批量创建同级别管理员账号
ch accounts batch --count N --password 初始密码 --admin-level SUPER|REGULAR|INTERVIEWER [--authorized-group-ids 1,2]接口:POST /admin/accounts/batch。
参数:--admin-level、--allow-profile-mismatch、--authorized-group-ids、--base-url、--count、-d、--data、--help、--json、--password、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
修改管理员资料/级别/授权组别
ch accounts update <id> [--real-name 姓名] [--admin-level SUPER|REGULAR|INTERVIEWER] [--authorized-group-ids 1,2]接口:PUT /admin/accounts/{id}。
参数:--admin-level、--allow-profile-mismatch、--authorized-group-ids、--base-url、-d、--data、--help、--json、--pretty、--profile、--real-name、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
重置管理员密码
ch accounts reset-password <id> --password 新密码接口:PUT /admin/accounts/{id}/password。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--password、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
删除管理员账号(初始管理员与自身由后端拒绝)
ch accounts delete <id>接口:DELETE /admin/accounts/{id}。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
管理员申请审批列表
ch applies list [--status 0|1|2] [--pretty]接口:GET /admin/account-applications。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--status、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
未审批申请数量
ch applies pending-count接口:GET /admin/account-applications/pending-count。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
审批通过(自动开通账号,账号=学号,初始密码=学号)
ch applies approve <id>接口:POST /admin/account-applications/{id}/approve。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
驳回申请(原因必填)
ch applies reject <id> --reason 驳回原因接口:POST /admin/account-applications/{id}/reject。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--pretty、--profile、--reason、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
按学号查询申请进度(公开接口,免登录)
ch applies status <studentNo>接口:GET /account-applications/status。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
提交管理员账号申请(公开接口,免登录)
ch applies submit --studentNo 10位学号 --real-name 姓名 --position-code CAPTAIN|LEADER|MEMBER [--apply-group-id N]接口:POST /account-applications。
参数:--allow-profile-mismatch、--apply-group-id、--base-url、-d、--data、--help、--json、--position-code、--pretty、--profile、--real-name、--studentNo、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
当前管理员个人资料
ch profile get接口:GET /admin/profile。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
修改个人资料
ch profile update --real-name 姓名 [--group-id N] [--phone 手机号]接口:PUT /admin/profile。
参数:--allow-profile-mismatch、--base-url、-d、--data、--group-id、--help、--json、--phone、--pretty、--profile、--real-name、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
修改当前账号登录密码
ch profile change-password --password 新密码接口:PUT /admin/profile/password。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--password、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
AI Coding 计划:list/get/create/update/publish/withdraw/starts/publication/credential
ch ai plans list [--page N] [--page-size N] [--status DRAFT|PUBLISHED] [--group-id N]
ch ai plans get <id>
ch ai plans create --name 名 --group-ids 1,2 [--opens-at "..."] [--closes-at "..."] [--publish-at "..."] [--survey-seconds N] [--coding-seconds N] [--reflection-seconds N] [--reflection-mode STATIC|PERSONALIZED] [-d @plan.json]
ch ai plans update <id> [...同 create...] [--version N] # version 缺省自动重读
ch ai plans publish <id>
ch ai plans withdraw <id> --reason 原因
ch ai plans starts <id> --paused true|false --reason 原因
ch ai plans publication <id> --publish-at "..." --reason 原因
ch ai plans credential <id> <modelId> --api-key sk-... --reason 原因接口:GET /admin/ai-coding/plans、POST /admin/ai-coding/plans、GET /admin/ai-coding/plans/{id}、PUT /admin/ai-coding/plans/{id}、POST /admin/ai-coding/plans/{id}/publish、POST /admin/ai-coding/plans/{id}/withdraw、PATCH /admin/ai-coding/plans/{id}/starts、PATCH /admin/ai-coding/plans/{id}/publication、PUT /admin/ai-coding/plans/{id}/models/{modelId}/credential。
参数:--allow-profile-mismatch、--api-key、--base-url、--closes-at、--coding-seconds、-d、--data、--group-id、--group-ids、--help、--json、--name、--opens-at、--page、--page-size、--paused、--pretty、--profile、--publish-at、--reason、--reflection-mode、--reflection-seconds、--request-id、--status、--survey-seconds、--timeout、--version、--key-version。未知、不适用参数及多余位置参数在请求前返回 exit 2。
AI Coding 考次:list/get/grade/void
ch ai attempts list [--page N] [--page-size N] [--plan-id N] [--group-id N] [--state SURVEY|CODING|REFLECTION|SUBMITTED|VOIDED] [--grade-state UNGRADED|HIDDEN|PUBLISHED|VOIDED] [--keyword 关键词]
ch ai attempts get <id>
ch ai attempts grade <id> --score 85 --public-comment 公开评价 --internal-comment 内部评价 [--reason 修正原因]
ch ai attempts void <id> --reason 原因接口:GET /admin/ai-coding/attempts、GET /admin/ai-coding/attempts/{id}、PUT /admin/ai-coding/attempts/{id}/grade、POST /admin/ai-coding/attempts/{id}/void。
参数:--allow-profile-mismatch、--base-url、-d、--data、--grade-state、--group-id、--help、--internal-comment、--json、--keyword、--page、--page-size、--plan-id、--pretty、--profile、--public-comment、--reason、--request-id、--score、--state、--timeout、--version、--expected-revision。未知、不适用参数及多余位置参数在请求前返回 exit 2。
AI Coding 考生资格:list/retake(安排重考)
ch ai candidates list [--page N] [--page-size N] [--plan-id N] [--group-id N] [--eligibility NOT_REQUIRED|WAITING_SELECTION|INELIGIBLE|EXEMPT|REQUIRED] [--keyword 关键词]
ch ai candidates retake <userId> --plan-id N --assignment-version N --opens-at "..." --closes-at "..." --reason 原因接口:GET /admin/ai-coding/candidates、POST /admin/ai-coding/candidates/{userId}/retake。
参数:--allow-profile-mismatch、--assignment-version、--base-url、--closes-at、-d、--data、--eligibility、--group-id、--help、--json、--keyword、--opens-at、--page、--page-size、--plan-id、--pretty、--profile、--reason、--request-id、--timeout、--version。未知、不适用参数及多余位置参数在请求前返回 exit 2。
飞书签到集成状态
ch feishu status [--pretty]接口:GET /admin/feishu/status。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
触发飞书场次双向对账
ch feishu reconcile接口:POST /admin/feishu/reconcile。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
飞书同步冲突列表
ch feishu conflicts [--pretty]接口:GET /admin/feishu/conflicts。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
创建签到大屏会话(8 小时有效,screenToken 仅经 header 传递,不落盘)
ch checkin launch接口:POST /admin/checkin-screens。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
读取签到大屏当前快照(screenToken 经 X-Checkin-Screen-Token header,绝不携带管理员 JWT)
ch checkin snapshot --screen-token <token> [--group-id N ...]接口:GET /checkin-screens/current。
参数:--allow-profile-mismatch、--base-url、--group-id、--help、--json、--pretty、--profile、--screen-token、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
分页查询二轮组别选择
ch second-round-choices page [--page N] [--size N]接口:GET /admin/second-round-choices/page。
参数:--allow-profile-mismatch、--base-url、--help、--json、--page、--pretty、--profile、--size、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
查看场次到场名单
ch slots attendance <slotId>接口:GET /admin/interview-slots/{slotId}/attendance。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
补推当天缺勤通知(会向真人发送通知,仅全局管理员)
ch feishu backfill-absence接口:POST /admin/feishu/notifications/backfill-today-absence。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
刷新飞书场次文档(外部写入,仅全局管理员)
ch feishu refresh-document接口:POST /admin/feishu/upcoming-slots-document/refresh。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
查询飞书投递队列(最多200条,仅全局管理员)
ch feishu deliveries [--status QUEUED|SENDING|SENT|FAILED|SKIPPED|RETRY]接口:GET /admin/feishu/deliveries。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--status、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
重放失败/跳过投递(可能向真人补发通知,仅全局管理员)
ch feishu requeue [--ids 1,2] [--all]接口:POST /admin/feishu/deliveries/requeue。
参数:--all、--allow-profile-mismatch、--base-url、--help、--ids、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
上传/预览出题资料(需新版后端;上传不支持requestId去重)
ch ai materials upload <file>
ch ai materials get <materialId>接口:POST /admin/ai-coding/materials、GET /admin/ai-coding/materials/{id}。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
后端要求:material-authoring backend (not included in this CLI release)。
创建出题任务/查询任务/确认题目(需新版后端)
ch ai papers generate <planId> <paperId> [--version N] [--request-id ID]
ch ai papers get-generation <planId> <paperId> <jobId>
ch ai papers confirm <planId> <paperId> [--version N] [--request-id ID]接口:POST /admin/ai-coding/plans/{planId}/papers/{paperId}/generations、GET /admin/ai-coding/plans/{planId}/papers/{paperId}/generations/{jobId}、POST /admin/ai-coding/plans/{planId}/papers/{paperId}/confirm。
参数:--allow-profile-mismatch、--base-url、-d、--data、--help、--json、--pretty、--profile、--request-id、--timeout、--version。未知、不适用参数及多余位置参数在请求前返回 exit 2。
后端要求:material-authoring backend (not included in this CLI release)。
离线机器可读能力目录(含参数、读写、权限、幂等与后端要求)
ch capabilities [--json]参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
为 agent 安装原生技能/插件(仅本地,不含凭据)
ch agent install <agent> [--scope user|project]参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--scope、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
查询全量只读数据目录、字段、过滤条件及实际后端可用性
ch analysis resources接口:GET /admin/analysis/resources。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
后端要求:backend v36 data-analysis permission (CLI 0.3.0)。
按主键游标查询全量业务数据(不推进业务状态)
ch analysis list <resource> [--cursor 游标] [--size 100] [--filters JSON或@文件]接口:GET /admin/analysis/resources/{resource}。
参数:--allow-profile-mismatch、--base-url、--cursor、--filters、--help、--json、--pretty、--profile、--size、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
后端要求:backend v36 data-analysis permission (CLI 0.3.0)。
读取单条分析记录,包括题目、答卷和评价(按字段白名单)
ch analysis get <resource> <id>接口:GET /admin/analysis/resources/{resource}/{id}。
参数:--allow-profile-mismatch、--base-url、--help、--json、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
后端要求:backend v36 data-analysis permission (CLI 0.3.0)。
逐页导出 JSONL,全部成功后原子落盘;多页不是同一时刻快照
ch analysis export <resource> --out ./data.jsonl [--size 100] [--filters JSON或@文件] [--force]接口:GET /admin/analysis/resources/{resource}。
参数:--allow-profile-mismatch、--base-url、--filters、--force、--help、--json、--out、--pretty、--profile、--size、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
后端要求:backend v36 data-analysis permission (CLI 0.3.0)。
受鉴权下载分析附件到本地;不支持任意 URL 或服务器路径
ch analysis download <attachmentId> --out ./attachment [--force]接口:GET /admin/analysis/attachments/{attachmentId}。
参数:--allow-profile-mismatch、--base-url、--force、--help、--json、--out、--pretty、--profile、--timeout。未知、不适用参数及多余位置参数在请求前返回 exit 2。
后端要求:backend v36 data-analysis permission (CLI 0.3.0)。
SYSTEM 开启/关闭管理员数据分析权限(版本冲突须刷新)
ch accounts analysis-permission <id> --enabled true|false --version N接口:PUT /admin/accounts/{id}/data-analysis-permission。
参数:--allow-profile-mismatch、--base-url、--enabled、--help、--json、--pretty、--profile、--timeout、--version。未知、不适用参数及多余位置参数在请求前返回 exit 2。
后端要求:backend v36 data-analysis permission (CLI 0.3.0)。