Courtesy of Mac Dev Weekly:

defaults write com.apple.dock \
persistent-others -array-add \
'{ "tile-data" = { "list-type" = 1; }; \
"tile-type" = "recents-tile"; }' \
killall Dock