additemtodock is command line utility for adding items to the dock. It is aimed at system administrators.