@stoplight/prism-cli
v5.16.0
Published
You can install the command line CLI using `npm i -g @stoplight/prism-cli`
Keywords
Readme
prism-cli
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
Documentation
Read me about the Prism CLI.
Development
Debugging
npm run 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.jsonand put this content inside:
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 9229
},- Enjoy the breakpoints :)
Anonymized analytics
Prism uses Scarf to collect anonymized installation analytics. These analytics help support the maintainers of this library and ONLY run during installation. To opt out, you can set the scarfSettings.enabled field to false in your project's package.json:
// package.json
{
// ...
"scarfSettings": {
"enabled": false
}
// ...
}Alternatively, you can set the environment variable SCARF_ANALYTICS to false as part of the environment that installs your npm packages, e.g., SCARF_ANALYTICS=false npm install.
