system_profiler
system_profiler reports on the hardware and software configuration of the system. It can generate plain text reports or XML reports which can be opened with System Information.app
Author: Ethan Nay Created: 2023-07-12
Paths
/usr/sbin/system_profiler Example Use Cases
Listing the available datatypes
List all available sub-systems to get information from.
system_profiler -listDataTypes Print hardware information
Prints an overview of the hardware of the current machine, including its model name and serial number.
system_profiler SPHardwareDataType Print software information
Prints an overview of the software of the current machine, including the exact macOS version number.
system_profiler SPSoftwareDataType Print the information of developer tools
Prints the currently active version of the Xcode developer tools and SDK.
system_profiler SPDeveloperToolsDataType