执行 Shell 命令(Stream)
通过 SSE(Server-Sent Events) 流式返回实时日志,连接断开后命令仍继续执行。
Authorization
Token api-token<token>
32位令牌,在控制面板《个人设置 - 令牌管理》页面获取
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/exec/v1/cmd/stream" \ -H "Content-Type: application/json" \ -d '{ "cmd": "string" }'{}
