Command: dock
Manage the macOS Dock's appearance, behavior, and content.
Usage
Usage: m dock [OPTIONS] [ARGUMENTS]
Description: Manage the macOS Dock settings and items
Options:
--autohide <enable|disable> Enable or disable the Dock's auto-hide feature
--autohidedelay SECONDS Changes how long it takes to detect you want to show up the dock
--additem PATH Add an item to the Dock, e.g. /Applications/Safari.app
--addblankspace Add a blank space (separator) to the Dock
--addrecentitems Add a stack containing your recent items to the Dock
--magnification <enable|disable> Enable or disable magnification of Dock icons
--position <bottom|left|right> Change the Dock's position on the screen
--prune Remove all items from the Dock
--showdelay SECONDS Changes how long the Dock takes to show up when auto-hide is enabled
Options
--autohide <enable|disable>
Enables or disables the auto-hiding feature of the Dock.
Example:
m dock --autohide enable
--position <bottom|left|right>
Changes the Dock's position on the screen.
Example:
m dock --position right
--magnification <enable|disable>
Enables or disables the icon magnification effect when you hover over the Dock.
Example:
m dock --magnification enable
--additem PATH
Adds an application or folder to the Dock.
Example:
m dock --additem /Applications/Calculator.app
--addblankspace
Adds a blank, transparent spacer to the Dock, which can be used to organize items.
Example:
m dock --addblankspace
--addrecentitems
Adds a stack that displays your recently used applications, documents, or servers.
Example:
m dock --addrecentitems
--prune
Removes all application icons from the Dock. Be careful with this command!
Example:
m dock --prune
--autohidedelay SECONDS
Sets the delay in seconds before the Dock begins to appear when you move your cursor to the edge of the screen.
Example:
# Set a 0.5 second delay
m dock --autohidedelay 0.5
--showdelay SECONDS
Sets the animation speed in seconds for how long the Dock takes to appear once it starts showing.
Example:
# Make the Dock appear almost instantly
m dock --showdelay 0.1