concurrently
Run multiple commands concurrently with prefixed, color-coded output and configurable kill behavior.
Official Documentation ↗v9. Check the official docs for the latest API surface.Installation
npm install --save-dev concurrentlyMethods
No methods match this filter.
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.
- Also if one process fails, others still keep running and you won’t even notice the difference. (https://cdn.jsdelivr.net/gh/open-cli-tools/concurrently@latest/README.md)
- Can be an array containing the strings success (status code zero) and/or failure (non-zero exit status). (https://cdn.jsdelivr.net/gh/open-cli-tools/concurrently@latest/README.md)
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.
Report a problem with this API docOpens a pre-filled issue on GitHub.