# bin-version-check-cli

> Check whether a binary version satisfies a semver range

Latest version **4.0.0** (published 2024-04-03) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install bin-version-check-cli
pnpm add bin-version-check-cli
yarn add bin-version-check-cli
bun add bin-version-check-cli
```

Provides the command `bin-version-check`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2024-04-03 |
| First published | 2015-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 3 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | cli-app, cli, binary, executable, version, semver, semantic, range, satisfy, check, validate |

## Links

- npm: https://www.npmjs.com/package/bin-version-check-cli
- Repository: https://github.com/sindresorhus/bin-version-check-cli
- Homepage: https://github.com/sindresorhus/bin-version-check-cli#readme
- Issues: https://github.com/sindresorhus/bin-version-check-cli/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/bin-version-check-cli

## Dependencies (3)

- [meow](https://npm.io/package/meow.md) ^13.2.0
- [arrify](https://npm.io/package/arrify.md) ^3.0.0
- [binary-version-check](https://npm.io/package/binary-version-check.md) ^6.1.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 4.0.0 (latest) — 2024-04-03
- 3.0.0 — 2021-04-28
- 2.0.0 — 2018-11-06
- 1.0.0 — 2015-12-12

## README

# bin-version-check-cli

> Check whether a binary version satisfies a [semver range](https://github.com/npm/node-semver#ranges)

Useful when you have a thing that only works with specific versions of a binary.

## Install

```sh
npm install --global bin-version-check-cli
```

## Usage

```
$ bin-version-check --help

  Usage
    $ bin-version-check <binary> <semver-range>

  Options
    --args  CLI args to get binary version (Can be set multiple times) [Default: --version]

  Example
    $ curl --version
    curl 7.30.0 (x86_64-apple-darwin13.0)
    $ bin-version-check curl '>=8'
    curl 7.30.0 doesn't satisfy the version requirement of >=8

  Exits with code 0 if the semver range is satisfied and 1 if not
```

## Related

- [binary-version-check](https://github.com/sindresorhus/binary-version-check) - API for this package

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