Can I update the iCloud password from a terminal? I have several Macs in a different country, and I would like to update their iCloud password remotely. I can login to the machines via SSH, but the firewall does not allow me to use VNC.

I would like to know how to update iCloud password using only terminal commands. Is there any way?
check out the "security" command . it my work.