All apps/sw_vers

sw_vers

sw_vers

Print macOS version information.

Runs as sw_vers|macOS

Command form

ai-draft · 1 task · 3 fields

Print the macOS product name, version or build. With none selected all three are printed.

Opens the form; the finished command lands at your prompt, unrun
otty gui sw_vers
Show macOS versionExample values, fixed in this page — nothing here reaches a terminal
Basic
Product version*
-productVersion
TasksEach one presets the form for one job
Product version only
product_version
ParametersOnly these flags are editable in the form
Product name
boolean
-productName
Product version
boolean
-productVersion
Build version
boolean
-buildVersion
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed sw_vers against its version. A form that does not match your version is not offered.