🛠️
Utility5M+/wkMIT

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
npm install -D concurrently
yarn
yarn add -D concurrently
pnpm
pnpm add -D concurrently

Import

ESM
// Used as CLI in package.json scripts

Quick Example

usage
// 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

Packageconcurrently
CategoryUtility
Weekly Downloads5M+
LicenseMIT
Installnpm install -D concurrently

Related Packages

Browse npm Packages by Category

Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.