Minimize on click:
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
Back to default:
gsettings reset org.gnome.shell.extensions.dash-to-dock click-action
Minimize on click:
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
Back to default:
gsettings reset org.gnome.shell.extensions.dash-to-dock click-action