attempt-cli

Retry utility for executing commands with automatic retry logic

brewmacoslinux
Try with needOr install directly
Source

About

CLI for retrying fallible commands

Commands

attempt

Examples

Retry a command up to 5 times with default backoff$ attempt -n 5 curl https://api.example.com
Retry a flaky test with exponential backoff$ attempt -n 3 -d 2s npm test
Retry deployment script with custom delay between attempts$ attempt -n 10 -d 1s ./deploy.sh