system_profiler [-listDataTypes]
system_profiler [-xml|-json] [-detailLevel level]
system_profiler [-xml|-json] dataType1 …dataTypeN
system_profiler [-usage]
Outputs the hardware and software configuration in XML (which can be opened with System Information.app, or JSON
-xml |
system_profiler
system_profiler -detailLevel mini
system_profiler -listDataTypes
system_profiler SPSoftwareDataType SPNetworkDataType
system_profiler -xml > MyReport.spx
example (big) , takes 15 seconds to generate.