@vnczjs/prism-test-cli
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

prism-cli

oclif Version Downloads/week License

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

  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 :)

Readme

Keywords

none

Package Sidebar

Install

npm i @vnczjs/prism-test-cli

Weekly Downloads

1

Version

3.0.0

License

Apache-2.0

Unpacked Size

19.5 kB

Total Files

10

Last publish

Collaborators

  • vincenzo