将脚本输出管道至消息平台

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静默模式
--jsonJSON 输出

不需要 Gateway

对于 bot token 平台,hermes send 直接使用配置中的凭据调用 REST 端点,无需运行 gateway。

详见 workspace zh/guides/pipe-script-output.md