dockutil
Manage macOS dock items. tldr-pages
On macOS
macOS
Add an application to the end of the current user's dock
dockutil --add path/to/applicationIdentifyReplace one application with another in the current user's dock
dockutil --add /path/to/application --replacing 'dock_item_label'IdentifyAdd a directory with view options and display it as a folder icon or stack
dockutil --add /path/to/directory --view grid --display folderIdentifyAdd a URL dock item after another item
dockutil --add vnc://example_server.local --label 'Example VNC' --after dock_item_labelIdentifyRemove an application from the dock given its dock label name
dockutil --remove 'dock_item_label'IdentifyAdd a spacer in a section after an application
dockutil --add '' --type spacer --section apps --after dock_item_labelIdentifyRemove all spacer tiles
dockutil --remove spacer-tilesIdentify