example multi-command CLI built with typescript
$ npm install -g sdk2-tester
$ example-multi-ts COMMAND
running command...
$ example-multi-ts (-v|--version|version)
sdk2-tester/0.0.1 darwin-x64 node-v12.20.2
$ example-multi-ts --help [COMMAND]
USAGE
$ example-multi-ts COMMAND
...
display help for example-multi-ts
USAGE
$ example-multi-ts help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
设置必要参数(访问入口、测试用 fileId、测试用用户 token 等)
USAGE
$ example-multi-ts set [FILE]
OPTIONS
-e, --endpoint=endpoint 接入商访问入口,如 http://abc.com/v2
-f, --fileid=fileid 测试用的文件 id,如 123
-h, --help show CLI help
-t, --token=token 测试用的用户 token,如 a7c831ea
See code: src/commands/set.ts
开始测试
USAGE
$ example-multi-ts start [FILE]
OPTIONS
-h, --help show CLI help
EXAMPLE
$ shimo-sdk2-test start
See code: src/commands/start.ts