system_profiler

reports system hardware and software configuration.

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 use XML format. If redirected to a file with a ".spx" suffix it file can be opened with System Information.app.
-json Use JSON format.
-listDataTypes Lists the available datatypes.
system_profiler -listDataTypes Available Datatypes:
SPParallelATADataType
SPUniversalAccessDataType
SPSecureElementDataType
SPApplicationsDataType
SPAudioDataType
SPBluetoothDataType
SPCameraDataType
SPCardReaderDataType
SPiBridgeDataType
SPDeveloperToolsDataType
SPDiagnosticsDataType
SPDisabledSoftwareDataType
SPDiscBurningDataType
SPEthernetDataType
SPExtensionsDataType
SPFibreChannelDataType
SPFireWireDataType
SPFirewallDataType
SPFontsDataType
SPFrameworksDataType
SPDisplaysDataType
SPHardwareDataType
SPInstallHistoryDataType
SPInternationalDataType
SPLegacySoftwareDataType
SPNetworkLocationDataType
SPLogsDataType
SPManagedClientDataType
SPMemoryDataType
SPNVMeDataType
SPNetworkDataType
SPPCIDataType
SPParallelSCSIDataType
SPPowerDataType
SPPrefPaneDataType
SPPrintersSoftwareDataType
SPPrintersDataType
SPConfigurationProfileDataType
SPRawCameraDataType
SPSASDataType
SPSerialATADataType
SPSPIDataType
SPSmartCardsDataType
SPSoftwareDataType
SPStartupItemDataType
SPStorageDataType
SPSyncServicesDataType
SPThunderboltDataType
SPUSBDataType
SPNetworkVolumeDataType
SPWWANDataType
SPAirPortDataType

-detailLevel level
mini no personal information
basic basic hardware and network information
full all available information
-timeout seconds Specifies the maximum time to wait in seconds

Examples

example (big) , takes 15 seconds to generate.