How can i get my apple id by terminal in MacBook? How can i get my apple id via terminal command?
I tested dscl command in my terminal with the following parameters?



dscl . -list /Users AppleID





dscl . -list /Users UniqueID




But i didn't get anything with these commands. I need to get my apple id via command line.
Any suggestion?
The information about the currently logged in Apple ID can be retrieved with the following command: defaults read MobileMeAccounts Accounts
Alternatively, you can take a look at the tool mas-cli. With the command mas account you can also query the Apple ID.