Mac Part Number or associated Model Name [ex: MacBook Pro (15-inch, 2019)]via command line
Since some model identifiers like MacBookPro15,1 and MacBookPro15,2 span over 2 actual model names, is there any way to pull the actual Part Number (MR932xx/A) of a computer via the terminal? I do not want to use serial lookup, to find the exact linked model, such as MacBook Pro (15-inch, 2019) vs MacBook Pro (15-inch, 2018). I would like to use a table of part numbers to model names, so this will work offline. Serial number lookup would only work if the computer is online.
I have not been able to find a post for this. Based upon my findings, people say it is not possible, but I am sure there has to be a way without using the serial number and a URL to get the model name or model number.