Can a Mac's part number be determined with a Terminal Command? I need to determine the Apple Part Number 'MXXXXXLL/A' and do not have the original packaging.  Is there a way to do this from command line?

I don't need model #, I specifically need the part #.  Thanks.
Apple Order Numbers -- which also are referred to as Model Numbers, Part Numbers, or Marketing Numbers.

Unfortunately, Order Numbers cannot be found on the hardware itself nor can they be found in the "About This Mac" section of OS X, and this is the primary limitation of the identifier.

Nor can it be determined using Terminal.



Open About this Mac  and copy the serial number from there.

Paste that number in the search box on the Look up web page

It will show you the "Order Number"  as example  Order     MQXXXLL/A