### Install parallelshell (Global) Source: https://github.com/darkguy2008/parallelshell/blob/master/README.md Install parallelshell globally on your system. ```bash npm i -g parallelshell ``` -------------------------------- ### Install parallelshell (Development) Source: https://github.com/darkguy2008/parallelshell/blob/master/README.md Install parallelshell as a development dependency in your project. ```bash npm i --save-dev parallelshell ``` -------------------------------- ### Install Parallel Shell via npm Source: https://context7.com/darkguy2008/parallelshell/llms.txt Install Parallel Shell as a development dependency or globally for command-line usage. ```bash npm install --save-dev parallelshell ``` ```bash npm install -g parallelshell ``` -------------------------------- ### Verbose Logging Mode Source: https://context7.com/darkguy2008/parallelshell/llms.txt Enable verbose output to see detailed status of each process, including when processes start, end, or fail. ```bash parallelshell -v "echo task1" "echo task2" ``` -------------------------------- ### Display Help Information Source: https://context7.com/darkguy2008/parallelshell/llms.txt Show all available command-line options and usage information. ```bash parallelshell --help ``` -------------------------------- ### Use in npm Scripts Source: https://context7.com/darkguy2008/parallelshell/llms.txt Configure parallel commands directly in your package.json for development workflows. ```json { "scripts": { "dev": "parallelshell \"npm run watch:css\" \"npm run watch:js\" \"npm run server\"", "test:watch": "parallelshell \"npm run lint:watch\" \"npm run test:unit:watch\"", "build:all": "parallelshell -v \"npm run build:client\" \"npm run build:server\"" } } ``` -------------------------------- ### Run Development Watchers Concurrently Source: https://context7.com/darkguy2008/parallelshell/llms.txt A common use case is running multiple development tools simultaneously, such as a build watcher and a test watcher. ```bash parallelshell "npm run watch:build" "npm run watch:test" ``` ```bash parallelshell "npm run server" "npm run sass:watch" "npm run typescript:watch" ``` -------------------------------- ### Windows Compatibility Source: https://context7.com/darkguy2008/parallelshell/llms.txt On Windows, use double quotes to properly escape command arguments. Parallel Shell automatically uses `cmd /c` on Windows instead of `sh -c`. ```bash parallelshell "echo hello" "echo world" ``` ```bash parallelshell "node -e \"console.log('task 1')\"" "node -e \"console.log('task 2')\"" ``` -------------------------------- ### Execute Commands in Parallel Source: https://github.com/darkguy2008/parallelshell/blob/master/README.md Run multiple shell commands concurrently using parallelshell. All commands share stdout/stderr, and the first non-zero exit code stops the rest. ```bash parallelshell "echo 1" "echo 2" "echo 3" ``` -------------------------------- ### Wait Mode - Continue After Child Errors Source: https://context7.com/darkguy2008/parallelshell/llms.txt By default, when one process fails, all sibling processes are terminated. Use the `-w` or `--wait` flag to allow sibling processes to continue running even if one fails. ```bash parallelshell "exit 1" "sleep 10" ``` ```bash parallelshell --wait "exit 1" "echo 'still running'" "sleep 2" ``` -------------------------------- ### Handle Process Exit Codes Source: https://context7.com/darkguy2008/parallelshell/llms.txt Parallel Shell exits with the first non-zero exit code encountered, making it suitable for CI/CD pipelines where failure detection is critical. ```bash parallelshell "node -e 'process.exit(1)'" "sleep 100" echo $? ``` ```bash parallelshell -v "node -e 'throw new Error()"' "echo success" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.