# retry-cli

> Retry with exponential backoff for the command line.

Latest version **0.7.0** (published 2022-04-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install retry-cli
pnpm add retry-cli
yarn add retry-cli
bun add retry-cli
```

Provides the command `retry`.

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2022-04-20 |
| First published | 2016-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | * |
| Dependencies | 3 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Jon Tirsen |
| Maintainers | tirsen |

## Links

- npm: https://www.npmjs.com/package/retry-cli
- Repository: https://github.com/tirsen/retry-cli
- Issues: https://github.com/tirsen/retry-cli/issues
- npm.io page: https://npm.io/package/retry-cli

## Dependencies (3)

- [retry](https://npm.io/package/retry.md) ^0.13.1
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^7.0.3
- [node-getopt](https://npm.io/package/node-getopt.md) ^0.3.2

## Recent versions

- 0.7.0 (latest) — 2022-04-20
- 0.6.0 — 2018-12-04
- 0.5.0 — 2018-04-04
- 0.4.0 — 2016-07-22
- 0.3.0 — 2016-02-08
- 0.2.0 — 2016-02-05

## README

# retry-cli

Command line interface for retrying other commands with exponential backoff.

## Installation

    npm install retry-cli

## Based on

Just a command line interface to https://www.npmjs.com/package/retry

## Example

```
-> % node cli.js -t 1000 -n 3 -- ls asdf
ls: asdf: No such file or directory
ls: asdf: No such file or directory
ls: asdf: No such file or directory
ls: asdf: No such file or directory
```

## Documentation

```
Usage: retry [OPTION] -- [COMMAND]

  -n, --retries=ARG      The maximum amount of times to retry the operation. Default is 10.
      --factor=ARG       The exponential factor to use. Default is 2.
  -t, --min-timeout=ARG  The number of milliseconds before starting the first retry. Default is 1000.
      --max-timeout=ARG  The maximum number of milliseconds between two retries. Default is Infinity.
      --randomize        Randomizes the timeouts by multiplying with a factor between 1 to 2. Default is false.
  -h, --help             display this help.
```

---
_Source: https://npm.io/package/retry-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
