name: serve description: 运行Starlake HTTP服务器
Serve Skill
启动Starlake HTTP服务器,该服务器提供REST API以编程方式运行命令。服务器通过HTTP端点支持所有Starlake命令。
使用
starlake serve [选项]
选项
--host <值>: 服务器监听的地址(默认:localhost)--port <值>: 服务器监听的端口(默认:11000)--reportFormat <值>: 报告输出格式:console、json或html
环境变量
SL_API_HTTP_PORT: 覆盖默认服务器端口SL_API_DOMAIN: 覆盖默认服务器主机/IP
示例
在默认端口启动服务器
starlake serve
在自定义端口启动服务器
starlake serve --port 8080
在所有接口启动服务器
starlake serve --host 0.0.0.0 --port 8080