2021-03-08240 chars
How to Check the Temperature of Mac's CPU and GPU
Note: This only works for macs with Intel CPU. If you have an Apple Silicon, the IOKit framework will probably help.
# -n limit the number of sample count to 1
# -s only show the smc sampler
sudo powermetrics -n 1 -s smc