npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

@stoplight/prism-cli

3.0.0-alpha.16 • Public • Published

prism-cli

oclif Version Downloads/week License

Usage

$ npm install -g @stoplight/prism-cli
$ prism COMMAND
running command...
$ prism (-v|--version|version)
@stoplight/prism-cli/3.0.0-alpha.16 darwin-x64 node-v12.4.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 mock SPEC

Start a mock server with the given spec file

USAGE
  $ prism mock SPEC

ARGUMENTS
  SPEC  Path to a spec file

OPTIONS
  -d, --dynamic    Dynamically generate examples.
  -h, --host=host  [default: 127.0.0.1] Host that Prism will listen to.
  -p, --port=port  (required) [default: 4010] Port that Prism will run on.

See code: src/commands/mock.ts

Development

Debugging

  1. node --inspect -r tsconfig-paths/register bin/run
  2. .vscode/launch.json
{
  "type": "node",
  "request": "attach",
  "name": "Attach",
  "port": 9229
},
  1. Run VSCode debugger
  2. Enjoy breakpoints in VSCode :)

Keywords

none

install

npm i @stoplight/prism-cli

Downloadsweekly downloads

186

version

3.0.0-alpha.16

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability