From claw-skills
管理保利威直播服务,包括频道管理、推流操作、商品管理、优惠券、回放、文档和统计数据。当用户需要管理直播频道、配置推流设置、管理商品、处理优惠券、查看直播数据或管理回放录像时使用。
How this skill is triggered — by the user, by Claude, or both
Slash command
/claw-skills:polyv-live-cliThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
在执行任何 CLI 命令之前,必须先验证账号认证状态。
references/authentication.mdreferences/channel-management.mdreferences/chat-management.mdreferences/checkin.mdreferences/coupons.mdreferences/documents.mdreferences/donate.mdreferences/lottery.mdreferences/monitor.mdreferences/playback.mdreferences/player.mdreferences/products.mdreferences/qa-questionnaire.mdreferences/record-settings.mdreferences/scene-setup.mdreferences/session-management.mdreferences/statistics.mdreferences/streaming.md在执行任何 CLI 命令之前,必须先验证账号认证状态。
npx polyv-live-cli@latest account list
如果用户未配置认证,引导用户提供 AppID 和 AppSecret:
请提供你的保利威 AppID 和 AppSecret:
- 访问 https://www.polyv.net/ 后台获取
- 路径:云直播 -> 设置 -> 开发者信息
然后用用户提供的凭据配置:
npx polyv-live-cli@latest account add <名称> --app-id <appId> --app-secret <appSecret>
npx polyv-live-cli@latest account set-default <名称>
npx polyv-live-cli@latest channel list
# 添加账号凭证
npx polyv-live-cli@latest account add myaccount --app-id <id> --app-secret <secret>
# 切换账号
npx polyv-live-cli@latest use myaccount
# 创建频道
npx polyv-live-cli@latest channel create -n "我的直播"
# 获取推流密钥(用于OBS)
npx polyv-live-cli@latest stream get-key -c <channelId>
# 开始直播
npx polyv-live-cli@latest stream start -c <channelId>
# 监控直播状态
npx polyv-live-cli@latest stream status -c <channelId> -w
# 账号管理
npx polyv-live-cli@latest account add <名称> --app-id <id> --app-secret <secret>
npx polyv-live-cli@latest account list
npx polyv-live-cli@latest account set-default <名称>
npx polyv-live-cli@latest account delete <名称>
# 切换当前会话账号
npx polyv-live-cli@latest use <名称>
# 或使用内联凭证
npx polyv-live-cli@latest channel list --appId <id> --appSecret <secret>
npx polyv-live-cli@latest channel list -a <账号名称>
# 增删改查操作
npx polyv-live-cli@latest channel create -n <名称> [-d <描述>] [--scene <场景类型>]
npx polyv-live-cli@latest channel list [-P <页码>] [-l <数量>] [--keyword <关键词>]
npx polyv-live-cli@latest channel get -c <频道ID>
npx polyv-live-cli@latest channel update -c <频道ID> [-n <名称>] [-d <描述>]
npx polyv-live-cli@latest channel delete -c <频道ID> [-f]
npx polyv-live-cli@latest channel batch-delete --channelIds <id1> <id2> ...
# 场景类型: topclass(三分屏), cloudclass(云课堂), telecast(纯视频), akt(活动直播)
# 模板: ppt(PPT模板), video(视频模板)
# 推流操作
npx polyv-live-cli@latest stream get-key -c <频道ID> # 获取RTMP地址和推流密钥
npx polyv-live-cli@latest stream start -c <频道ID> # 开始直播
npx polyv-live-cli@latest stream stop -c <频道ID> # 结束直播
npx polyv-live-cli@latest stream status -c <频道ID> [-w] # 查看状态(-w持续监控)
npx polyv-live-cli@latest stream push -c <频道ID> -f <文件> # 推送视频文件
npx polyv-live-cli@latest stream verify -c <频道ID> [-d 60] # 直播质量验证
npx polyv-live-cli@latest stream monitor -c <频道ID> [-r 5] # 实时监控面板
# 商品管理
npx polyv-live-cli@latest product list -c <频道ID>
npx polyv-live-cli@latest product add -c <频道ID> --name <名称> --price <价格>
npx polyv-live-cli@latest product get -c <频道ID> -p <商品ID>
npx polyv-live-cli@latest product update -c <频道ID> -p <商品ID> [--name <名称>]
npx polyv-live-cli@latest product delete -c <频道ID> -p <商品ID>
# 优惠券操作
npx polyv-live-cli@latest coupon create -c <频道ID> -n <名称> --discount <金额>
npx polyv-live-cli@latest coupon list -c <频道ID>
npx polyv-live-cli@latest coupon get -c <频道ID> --couponId <优惠券ID>
npx polyv-live-cli@latest coupon delete -c <频道ID> --couponId <优惠券ID>
# 回放管理
npx polyv-live-cli@latest playback list -c <频道ID>
npx polyv-live-cli@latest playback get -c <频道ID> --videoId <回放ID>
npx polyv-live-cli@latest playback delete -c <频道ID> --videoId <回放ID>
npx polyv-live-cli@latest playback merge -c <频道ID> --videoIds <id1> <id2>
# 回放设置管理
npx polyv-live-cli@latest record setting get -c <频道ID>
npx polyv-live-cli@latest record setting set -c <频道ID> [--playback-enabled Y|N] [--type single|list] [--origin playback|vod|record]
# 录制转存
npx polyv-live-cli@latest record convert -c <频道ID> --file-name <文件名> [--session-id <场次ID>] [--async]
npx polyv-live-cli@latest record set-default -c <频道ID> --video-id <视频ID> [--list-type playback|vod]
# origin 类型: playback(回放列表), vod(点播列表), record(录制文件)
# type 类型: single(单个回放), list(列表回放)
# 场次管理
npx polyv-live-cli@latest session list [-c <频道ID>] [--page <页码>] [--page-size <数量>]
npx polyv-live-cli@latest session get -c <频道ID> --session-id <场次ID>
# 状态值: unStart(未开始), live(直播中), end(已结束), playback(回放中), expired(已过期)
# 文档管理
npx polyv-live-cli@latest document list -c <频道ID> [--status <状态>] [--page <页码>] [--page-size <数量>]
npx polyv-live-cli@latest document upload -c <频道ID> --url <文件URL> [--type common|animate] [--doc-name <名称>]
npx polyv-live-cli@latest document delete -c <频道ID> --file-id <文档ID> [--type old|new] [--force]
npx polyv-live-cli@latest document status -c <频道ID> --file-id <文档ID>
# 状态值: normal, waitUpload, failUpload, waitConvert, failConvert
# 类型: common(普通转换), animate(动效转换)
# 数据分析
npx polyv-live-cli@latest statistics overview -c <频道ID>
npx polyv-live-cli@latest statistics viewdata -c <频道ID> [--start-date <日期>]
npx polyv-live-cli@latest statistics summary -c <频道ID>
npx polyv-live-cli@latest statistics export -c <频道ID> -f csv -o report.csv
# 播放器配置
npx polyv-live-cli@latest player get -c <频道ID>
npx polyv-live-cli@latest player update -c <频道ID> [--autoplay] [--logo <url>]
# 预设场景
npx polyv-live-cli@latest setup --list # 列出可用场景
npx polyv-live-cli@latest setup e-commerce # 电商直播场景
npx polyv-live-cli@latest setup education # 在线教育场景
# 直播监控面板
npx polyv-live-cli@latest monitor start -c <频道ID>
npx polyv-live-cli@latest monitor stop
# 发送管理员消息
npx polyv-live-cli@latest chat send -c <频道ID> -m <文本消息>
npx polyv-live-cli@latest chat send -c <频道ID> -i <图片URL>
npx polyv-live-cli@latest chat send -c <频道ID> -m <消息> -n <昵称> -a <角色>
# 查看聊天历史
npx polyv-live-cli@latest chat list -c <频道ID>
npx polyv-live-cli@latest chat list -c <频道ID> --page <页码> --size <数量>
npx polyv-live-cli@latest chat list -c <频道ID> --start-day <开始日期> --end-day <结束日期>
# 删除消息
npx polyv-live-cli@latest chat delete -c <频道ID> -m <消息ID>
npx polyv-live-cli@latest chat delete -c <频道ID> --clear # 清空所有消息
# 禁言用户(频道级别)
npx polyv-live-cli@latest chat ban -c <频道ID> -u <用户ID1,用户ID2>
npx polyv-live-cli@latest chat ban -c <频道ID> -u <用户ID> -o json
# 全局禁言(账号级别)
npx polyv-live-cli@latest chat ban -u <用户ID1,用户ID2> --global
# 解除禁言
npx polyv-live-cli@latest chat unban -c <频道ID> -u <用户ID1,用户ID2>
npx polyv-live-cli@latest chat unban -u <用户ID1,用户ID2> --global
# 踢人(频道级别)
npx polyv-live-cli@latest chat kick -c <频道ID> -v <观众ID1,观众ID2> -n <昵称1,昵称2>
npx polyv-live-cli@latest chat kick -c <频道ID> -v <观众ID> -o json
# 全局踢人(账号级别)
npx polyv-live-cli@latest chat kick -v <观众ID1> -n <昵称1> --global
# 解除踢人
npx polyv-live-cli@latest chat unkick -c <频道ID> -v <观众ID1> -n <昵称1>
npx polyv-live-cli@latest chat unkick -v <观众ID1> --global
# 查看禁言列表
npx polyv-live-cli@latest chat banned list -c <频道ID> --type userId # 禁言用户列表
npx polyv-live-cli@latest chat banned list -c <频道ID> --type ip # 禁言IP列表
npx polyv-live-cli@latest chat banned list -c <频道ID> --type badword # 禁言词列表
# 查看踢人列表
npx polyv-live-cli@latest chat kicked list -c <频道ID>
npx polyv-live-cli@latest chat kicked list -c <频道ID> -o json
# 发起签到
npx polyv-live-cli@latest checkin start -c <频道ID>
npx polyv-live-cli@latest checkin start -c <频道ID> --limit-time 30 # 设置签到时长30秒
npx polyv-live-cli@latest checkin start -c <频道ID> --delay-time 1700734800000 # 定时签到
npx polyv-live-cli@latest checkin start -c <频道ID> --message "请签到" # 自定义签到提示语
npx polyv-live-cli@latest checkin start -c <频道ID> --force # 强制签到模式
# 查询签到成功记录
npx polyv-live-cli@latest checkin list -c <频道ID>
npx polyv-live-cli@latest checkin list -c <频道ID> --page 1 --size 20 # 分页查询
npx polyv-live-cli@latest checkin list -c <频道ID> --date 2024-01-15 # 按日期筛选
npx polyv-live-cli@latest checkin list -c <频道ID> --session-id <场次ID> # 按场次筛选
# 查询签到详情(包括已签到和未签到)
npx polyv-live-cli@latest checkin result -c <频道ID> --checkin-id <签到ID>
npx polyv-live-cli@latest checkin result -c <频道ID> --checkin-id <签到ID> -o json
# 查询签到发起记录(按时间范围)
npx polyv-live-cli@latest checkin sessions -c <频道ID>
npx polyv-live-cli@latest checkin sessions -c <频道ID> --start-date 2024-01-01 --end-date 2024-01-31
npx polyv-live-cli@latest checkin sessions -c <频道ID> -o json
# 发送问答卡(答题卡)
npx polyv-live-cli@latest qa send -c <频道ID> --question-id <问题ID>
npx polyv-live-cli@latest qa send -c <频道ID> --question-id <问题ID> --duration 30 # 设置答题时长30秒
npx polyv-live-cli@latest qa send -c <频道ID> --question-id <问题ID> -o json # JSON格式输出
# 查询问答卡列表
npx polyv-live-cli@latest qa list -c <频道ID>
npx polyv-live-cli@latest qa list -c <频道ID> -o json # JSON格式输出
# 停止问答卡
npx polyv-live-cli@latest qa stop -c <频道ID> --question-id <问题ID>
npx polyv-live-cli@latest qa stop -c <频道ID> --question-id <问题ID> -o json # JSON格式输出(含统计数据)
# 创建问卷
npx polyv-live-cli@latest questionnaire create -c <频道ID> --title <问卷标题> --questions '<JSON数组>'
npx polyv-live-cli@latest questionnaire create -c 3151318 --title "满意度调查" --questions '[{"name":"性别","type":"R","options":["男","女"],"required":"Y"}]'
# 问卷题型类型: R=单选, C=多选, Q=填空, J=判断, X=评分
# 创建带自定义ID的问卷
npx polyv-live-cli@latest questionnaire create -c <频道ID> --title <标题> --questions '<JSON>' --custom-questionnaire-id <自定义ID>
# 查询问卷列表
npx polyv-live-cli@latest questionnaire list -c <频道ID>
npx polyv-live-cli@latest questionnaire list -c <频道ID> --page 1 --size 20 # 分页查询
npx polyv-live-cli@latest questionnaire list -c <频道ID> --session-id <场次ID> # 按场次筛选
npx polyv-live-cli@latest questionnaire list -c <频道ID> --start-date 2024-01-01 --end-date 2024-01-31 # 日期范围
# 获取问卷详情
npx polyv-live-cli@latest questionnaire detail -c <频道ID> --questionnaire-id <问卷ID>
npx polyv-live-cli@latest questionnaire detail -c <频道ID> --questionnaire-id <问卷ID> -o json # JSON格式输出
# 创建抽奖活动
npx polyv-live-cli@latest lottery create -c <频道ID> --name <抽奖名称> --type <类型> --amount <中奖人数> --prize <奖品名称>
npx polyv-live-cli@latest lottery create -c 3151318 --name "幸运抽奖" --type none --amount 3 --prize "神秘礼品" # 无条件抽奖
npx polyv-live-cli@latest lottery create -c 3151318 --name "邀请抽奖" --type invite --amount 5 --prize "优惠券" --invite-num 3 # 邀请抽奖
npx polyv-live-cli@latest lottery create -c 3151318 --name "时长抽奖" --type duration --amount 2 --prize "红包" --duration 10 # 观看时长抽奖
# 抽奖类型: none=无条件, invite=邀请好友, duration=观看时长, comment=发表评论, question=回答问题
# 查询抽奖活动列表
npx polyv-live-cli@latest lottery list -c <频道ID>
npx polyv-live-cli@latest lottery list -c <频道ID> --page 1 --size 20 # 分页查询
npx polyv-live-cli@latest lottery list -c <频道ID> -o json # JSON格式输出
# 获取抽奖活动详情
npx polyv-live-cli@latest lottery get -c <频道ID> --id <抽奖活动ID>
# 更新抽奖活动
npx polyv-live-cli@latest lottery update -c <频道ID> --id <抽奖活动ID> --name <新名称> --amount <新人数>
# 删除抽奖活动
npx polyv-live-cli@latest lottery delete -c <频道ID> --id <抽奖活动ID>
# 查询中奖用户
npx polyv-live-cli@latest lottery winners -c <频道ID> --lottery-id <抽奖ID>
npx polyv-live-cli@latest lottery winners -c <频道ID> --lottery-id <抽奖ID> --page 1 --limit 20 # 分页查询
# 查询抽奖记录
npx polyv-live-cli@latest lottery records -c <频道ID>
npx polyv-live-cli@latest lottery records -c <频道ID> --session-id <场次ID> # 按场次筛选
npx polyv-live-cli@latest lottery records -c <频道ID> --start-time <时间戳> --end-time <时间戳> # 按时间范围
# 获取打赏配置
npx polyv-live-cli@latest donate config get -c <频道ID>
npx polyv-live-cli@latest donate config get -c 3151318 -o json # JSON格式输出
# 更新打赏配置
npx polyv-live-cli@latest donate config update -c <频道ID> --cash-enabled Y # 启用现金打赏
npx polyv-live-cli@latest donate config update -c <频道ID> --gift-enabled Y # 启用礼物打赏
npx polyv-live-cli@latest donate config update -c <频道ID> --tips "感谢支持!" # 设置打赏提示语
npx polyv-live-cli@latest donate config update -c <频道ID> --amounts "0.88,6.66,8.88,18.88" # 设置打赏金额
# 查询打赏记录
npx polyv-live-cli@latest donate list -c <频道ID> --start <开始时间戳> --end <结束时间戳>
npx polyv-live-cli@latest donate list -c 3151318 --start 1615772426000 --end 1615858826000
npx polyv-live-cli@latest donate list -c 3151318 --start 1615772426000 --end 1615858826000 --page 2 --size 20 # 分页
npx polyv-live-cli@latest donate list -c 3151318 --start 1615772426000 --end 1615858826000 -o json # JSON格式
大多数命令支持 -o table(默认表格格式)或 -o json(JSON格式,便于程序化处理)。
npx polyv-live-cli@latest channel list -o json
npx polyv-live-cli@latest stream status -c <频道ID> -o json
--appId <id> # 保利威应用ID
--appSecret <secret> # 保利威应用密钥
--userId <id> # 保利威用户ID(可选)
-a, --account <名称> # 使用指定账号
--verbose # 显示详细信息
--debug # 启用调试模式
--timeout <毫秒> # API超时时间(默认30000毫秒)
npx polyv-live-cli@latest use myaccount
npx polyv-live-cli@latest channel create -n "新品发布会" -d "新品展示直播"
# 记住输出的频道ID
npx polyv-live-cli@latest stream get-key -c 3151318
# 在OBS中使用RTMP地址和推流密钥
npx polyv-live-cli@latest stream start -c 3151318
npx polyv-live-cli@latest stream status -c 3151318 -w
npx polyv-live-cli@latest setup e-commerce
# 自动创建带商品预配置的频道
npx polyv-live-cli@latest stream verify -c 3151318 -d 120 -i 5
npx polyv-live-cli@latest stream monitor -c 3151318 -r 3 --alerts
npx claudepluginhub terryso/claw-skills --plugin claw-skillsProvides access to Clerk CLI for authentication, user/org/session management, deployment verification, environment keys, and Clerk API calls. Handles auth and formatting automatically.
Interacts with WeChat Official Account API to send customer service and template messages, manage templates, and list followers via CLI. Useful for customer engagement and notification workflows using App ID + App Secret authentication.
Exposes the DashClaw platform's routes, schema, and env vars via snapshot and live queries. Use for integration, troubleshooting, and governance — prefers `python -m livingcode query` or REST fallback.