0.1.0 • Published 5 months ago
http-run v0.1.0
http-run 一款用于预览本地打包的网页工具
-h 或 --help查看指令
示例:
# /html/dist
# 预览/html/dist目录下的网页并将/api和/profile为前缀的请求进行代理转发
http-run run -R /api@http://127.0.0.1:3130#/profile@http://127.0.0.1:3130/profile -P 6017
# http-run -h
Usage: cmd [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
run [options] 启动服务
proxy 代理服务配置
config [list] [preview] [get] <name] [set] <name] 配置文件
help [command]
# http-run run -h
Usage: cmd run [options]
启动服务
Options:
-R, --proxy <prefix@proxy> 代理服务, 多个用 # 分隔, 格式为 prefix@proxy#prefix@proxy
-N, --name <name...> 代理服务名称 如:test
-P, --port <port> 端口 如:9099
-h, --help display help for command