API Reference

concurrently

Run multiple commands concurrently with prefixed, color-coded output and configurable kill behavior.

Official Documentation ↗
CompatibilityThis documentation covers version v9. Check the official docs for the latest API surface.

Installation

npmnpm install --save-dev concurrently

Methods

concurrently starts several commands at once and interleaves their output with per-process prefixes.

Key Features

  • Named, color-coded output prefixes
  • –kill-others to stop all on first exit
  • Programmatic concurrently API

Usage Notes

Pin a version and check the official docs for the API surface you depend on before upgrading.

Errors

The following points are quoted verbatim from the official documentation. 来源:https://cdn.jsdelivr.net/gh/open-cli-tools/concurrently@latest/README.md · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:48:59.448Z. Any error type, throw condition or recovery step not stated there is left unspecified; this page does not infer exception classes or return values.

FAQ

How do I stop all commands when one fails?
Pass --kill-others-on-fail so a single failing command tears down the others, which is the behavior most CI and dev scripts want.
How do I label the output?
Use --names "api,web" together with --prefix-colors to give each stream a readable, colored label.
Can npm scripts take the --name shorthand?
Yes. Prefix a script with npm: like npm:dev:api and concurrently resolves it to the matching npm run script.