repeat-cli-command is a tool that will run any CLI command for an X number of times.
Install the following package:
npm install -D repeat-cli-command
npx repeat-cli-command "YOUR_COMMAND" --times=NUMBER_OF_TIMES_THAT_WILL_BE_EXECUTED
npx repeat-cli-command "npx playwright test" --times=5
Feel free to open a pull request or drop any feature request or bug in the issues.
Please see more details in the contributing doc.