Add Chrome to dock with parameters via Automator with chrome icon
This worked for me: defaults write com.apple.dock persistent-apps -array-add "&lt;dict&gt;&lt;key&gt;tile-data&lt;/key&gt;&lt;dict&gt;&lt;key&gt;file-data&lt;/key&gt;&lt;dict&gt;&lt;key&gt;_CFURLString&lt;/key&gt;&lt;string&gt;/Applications/Chess.app/&lt;/string&gt;&lt;key&gt;_CFURLStringType&lt;/key&gt;&lt;integer&gt;0&lt;/integer&gt;&lt;/dict&gt;&lt;/dict&gt;&lt;/dict&gt;"; killall Dock.

Questions about adding applications with command line arguments to the Dock:


How can I force command-line arguments to a program shortcut in the dock?
How do I pass command line arguments to Dock items?
How to set launch options for programs on OS X