将脚本输出管道至消息平台
hermes send 是一个可脚本化的 CLI,可将消息推送到任何已配置的平台。
快速开始
hermes send --to telegram "deploy finished"
echo "RAM 92%" | hermes send --to telegram:-1001234567890
hermes send --to discord:#ops --file /tmp/report.md
hermes send --list # 列出可用目标参数
| 标志 | 说明 |
|---|---|
-t, --to TARGET | 平台:chat_id:thread_id |
-f, --file PATH | 从文件读取 |
-s, --subject | 标题行 |
-q, --quiet | 静默模式 |
--json | JSON 输出 |
不需要 Gateway
对于 bot token 平台,hermes send 直接使用配置中的凭据调用 REST 端点,无需运行 gateway。
详见 workspace zh/guides/pipe-script-output.md