MacOS - change account to admin from command line

Had to do this today so thought I would share.....

 

dscl . -append /Groups/admin GroupMembership <username>

 

You need to be root or use sudo.