npm.io
5.16.0 • Published 1 month agoCLI

@stoplight/prism-cli

Licence
Apache-2.0
Version
5.16.0
Deps
21
Size
39 kB
Vulns
0
Weekly
0
Stars
5.0K

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
  1. npm run cli:debug -- mock file.oas.yml
  2. 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
},
  1. 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.