# osx-version-cli **Repository Path**: mirrors_sindresorhus/osx-version-cli ## Basic Information - **Project Name**: osx-version-cli - **Description**: Get the macOS version of the current system - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-27 - **Last Updated**: 2026-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # macos-version-cli > Get the macOS version of the current system. Example: `10.9.3` ## Install ```sh npm install --global macos-version-cli ``` ## Usage ``` $ macos-version --help Usage $ macos-version Options --is Check if the macOS version matches the specified semver range --gte Check if the macOS version is greater than or equal to the specified version --assert Assert that the macOS version matches the specified semver range --assert-gte Assert that the macOS version is greater than or equal to the specified version Examples $ macos-version 14.0 $ macos-version --is '>10.10' ✔ macOS version satisfies >10.10 $ macos-version --gte 10.10 ✔ macOS version is greater than or equal to 10.10 $ macos-version --assert '>10.10' ✔ macOS version satisfies >10.10 $ macos-version --assert-gte 10.10 ✔ macOS version is greater than or equal to 10.10 Exit codes 0 - Success or condition is true 1 - Condition is false or assertion failed ``` ## Related - [macos-version](https://github.com/sindresorhus/macos-version) - API for this package