Installing *.dmg via CLI How are *.dmg packages installed via the command line?
I noticed that they can be mounted with:  

me@MacBook-Pro:~$ open /Users/me/Downloads/installer.dmg


What's next?
Assuming that the diskimage contains a package or packages, you would list the packages on the mounted filesystem and then use /usr/sbin/installer