prism-cli
Usage
$ npm install -g @vnczjs/prism-test-cli
$ prism COMMAND
running command...
$ prism (-v|--version|version)
@vnczjs/prism-test-cli/3.0.0 darwin-x64 node-v11.13.0
$ prism --help [COMMAND]
USAGE
$ prism COMMAND
...
Commands
prism help [COMMAND]
display help for prism
USAGE
$ prism help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
prism serve
Start a server with the given spec file
USAGE
$ prism serve
OPTIONS
-m, --mock (required) Turn global mocking on or off
-p, --port=port (required) [default: 4010] Port that Prism will run on.
-s, --spec=spec (required) Path to a spec file
See code: src/commands/serve.ts
Development
Debugging
node --inspect -r tsconfig-paths/register bin/run
- .vscode/launch.json
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 9229
},
- Run VSCode debugger
- Enjoy breakpoints in VSCode :)