![Forrest logo](/images/logo.png)
On this page you find all important commands for the CLI tool sw_vers. If the
command you are looking for is missing please ask our AI.
sw_vers
Print macOS operating system version.
List of commands for sw_vers:
-
macos:version:show Displays the current macOS version$ sw_vers -productVersiontry on your machineexplain this command
-
sw_vers:tldr:175f1 sw_vers: Print all available information (OS name, version number, and build).$ sw_verstry on your machineexplain this command
-
sw_vers:tldr:967ef sw_vers: Print only the build identifier.$ sw_vers -buildVersiontry on your machineexplain this command