You can install the command line CLI using npm i -g @stoplight/prism-cli
To get an overview of all the commands, just do prism help
Read me about the Prism CLI.
yarn cli:debug mock file.oas.yml
- Run your preferred debugger on the newly created process. If you're into VS Code, you can create
.vscode/launch.json
and put this content inside:
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 9229
},
- Enjoy the breakpoints :)