devicehard is a command-line tool to get hardware information of Mac devices. This tool outputs the hardware information available in the package "DeviceHardware".
Intel Mac (MacBook Pro 13-inch, 2018) | M1 Mac (MacBook Pro M1, 2020) |
---|---|
![]() |
![]() |
USAGE: devicehard [--verbose]
OPTIONS:
--verbose Show information not implemented in DeviceHardware.
--version Show the version.
-h, --help Show help information.
- Download the latest version - https://github.com/Shakshi3104/devicehard/releases
- Open terminal app and move to the diectory contating the "devicehard" file
- Add the executable permission to the file:
chmod +x devicehard
- Move the file to the /usr/local/bin directory:
mv devicehard /usr/local/bin
- Clone this repository
- Open devicehard.xcodeproj
- Modify "Signing & Capabilities" to use your own id
- Build:
Command + B
- macOS 11.1+
- Xcode 12.4+