How to run the System Profiler to get hardware information from the terminal on macOS

Published April 03, 2022

You can easily and quickly get hardware information on your Mac using the System Profiler utility from the terminal. This includes model, memory, and CPU, among a lot of extra data.

system_profiler SPSoftwareDataType SPHardwareDataType