# @stoplight/prism-cli

> You can install the command line CLI using `npm i -g @stoplight/prism-cli`

Latest version **5.16.0** (published 2026-07-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @stoplight/prism-cli
pnpm add @stoplight/prism-cli
yarn add @stoplight/prism-cli
bun add @stoplight/prism-cli
```

Provides the command `prism`.

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 5.16.0 |
| Published | 2026-07-17 |
| First published | 2019-04-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=24.18.0 |
| Dependencies | 21 |
| Unpacked size | 39.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5070 |
| Author | Stoplight |
| Maintainers | stoplight-devops, mrunkle-sb, smartbear_devops |

## Links

- npm: https://www.npmjs.com/package/@stoplight/prism-cli
- Repository: https://github.com/stoplightio/prism
- Homepage: https://github.com/stoplightio/prism#readme
- Issues: https://github.com/stoplightio/prism/issues
- npm.io page: https://npm.io/package/@stoplight/prism-cli

## Dependencies (21)

- [pino](https://npm.io/package/pino.md) ^6.13.3
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [fp-ts](https://npm.io/package/fp-ts.md) ^2.11.5
- [tslib](https://npm.io/package/tslib.md) ^2.3.1
- [urijs](https://npm.io/package/urijs.md) ^1.19.11
- [yargs](https://npm.io/package/yargs.md) ^16.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.23
- [split2](https://npm.io/package/split2.md) ^4.2.0
- [signale](https://npm.io/package/signale.md) ^1.4.0
- [chokidar](https://npm.io/package/chokidar.md) ^3.5.2
- [jsonrepair](https://npm.io/package/jsonrepair.md) ^3.12.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.5
- [@scarf/scarf](https://npm.io/package/@scarf/scarf.md) ^1.4.0
- [@stoplight/json](https://npm.io/package/@stoplight/json.md) 3.21.7
- [@stoplight/types](https://npm.io/package/@stoplight/types.md) ^14.1.0
- [json-schema-faker](https://npm.io/package/json-schema-faker.md) 0.5.9
- [uri-template-lite](https://npm.io/package/uri-template-lite.md) ^22.9.0
- [@stoplight/prism-core](https://npm.io/package/@stoplight/prism-core.md) ^5.16.0
- [@stoplight/prism-http](https://npm.io/package/@stoplight/prism-http.md) ^5.16.0
- [@stoplight/prism-http-server](https://npm.io/package/@stoplight/prism-http-server.md) ^5.16.0
- [@stoplight/json-schema-ref-parser](https://npm.io/package/@stoplight/json-schema-ref-parser.md) 10.0.0

## Recent versions

- 5.16.0 (latest) — 2026-07-17
- 5.14.3-beta (beta) — 2026-03-11
- 5.15.11 — 2026-06-03
- 5.15.10 — 2026-04-20
- 5.15.9 — 2026-04-17
- 5.15.8 — 2026-04-17
- 5.15.7 — 2026-04-17
- 5.14.2 — 2025-04-17
- 5.14.1 — 2025-04-16
- 5.14.0 — 2025-04-15
- 5.12.0 — 2024-11-13
- 5.11.0 — 2024-11-13
- 5.10.0 — 2024-09-16
- 5.9.0 — 2024-08-09
- 5.8.3 — 2024-07-19
- … 198 more at https://npm.io/package/@stoplight/prism-cli/versions

## 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](../../docs/getting-started/03-cli.md).

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

```json
{
  "type": "node",
  "request": "attach",
  "name": "Attach",
  "port": 9229
},
```

4. Enjoy the breakpoints :)

## Anonymized analytics

Prism uses [Scarf](https://scarf.sh/) to collect [anonymized installation analytics](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-what-information-does-scarf-js-send-about-me). These analytics help support the maintainers of this library and ONLY run during installation. To [opt out](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-how-can-i-opt-out-of-analytics), 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`.

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=5a343b5d-430b-4fea-8299-845b23c0b407&page=README.md" />

---
_Source: https://npm.io/package/@stoplight/prism-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
