concurrently
Concurrently is a utility for running multiple commands simultaneously in a single terminal, with each command's output color-coded and prefixed for easy identi…
Installation
npm install -D concurrently
yarn add -D concurrently
pnpm add -D concurrently
Import
// Used as CLI in package.json scripts
Quick Example
// package.json
{
"scripts": {
"dev": "concurrently \"npm:dev:*\"",
"dev:api": "node server.js",
"dev:client": "vite",
"dev:types": "tsc --watch"
}
}About concurrently
Concurrently is a utility for running multiple commands simultaneously in a single terminal, with each command's output color-coded and prefixed for easy identification. It solves the common development scenario of needing to run multiple processes at once — a frontend dev server and a backend API server, TypeScript compilation in watch mode alongside a test runner, or multiple microservices during local development. Concurrently streams output from all commands in real-time, using different colors for each command's prefix to visually distinguish output sources. The tool supports configuration via command line or through a concurrently section in package.json, with options for kill-others (stop all commands when one exits), restart-tries (automatic restart on failure), timestamp prefixes, custom names and colors, and success conditions (wait for specific commands to succeed). Concurrently handles process cleanup gracefully, sending SIGTERM to all child processes when one exits or when the parent process is terminated. It provides a JavaScript API for programmatic usage in build scripts and task runners. Concurrently replaces fragile solutions like chaining commands with & (which does not work on Windows) or using multiple terminal windows.
Quick Facts
| Package | concurrently |
| Category | Utility |
| Weekly Downloads | 5M+ |
| License | MIT |
| Install | npm install -D concurrently |
Related Packages
Nodemon is a utility that monitors for file changes in your Node.js application and automatically re…
cross-env is a utility that allows you to set environment variables inline in npm scripts in a way t…
PM2 is a production process manager for Node.js applications that provides process monitoring, autom…
dotenv is a zero-dependency module that loads environment variables from a .env file into process.en…
Browse npm Packages by Category
Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.