# Position

Set the Dock position

  • Tested on macOS:
    • Monterey
    • Big Sur
    • Catalina
    • Mojave
  • Parameter type: string
    • left
    • bottom
    • right

# Set to left

Put the Dock on the left of the screen

defaults write com.apple.dock "orientation" -string "left" && killall Dock

Example output with value set to left

# Set to bottom (default value)

Put the Dock on the bottom of the screen

defaults write com.apple.dock "orientation" -string "bottom" && killall Dock

Example output with value set to bottom

# Set to right

Put the Dock on the right of the screen

defaults write com.apple.dock "orientation" -string "right" && killall Dock

Example output with value set to right

# Read current value

defaults read com.apple.dock "orientation"

# Reset to default value

defaults delete com.apple.dock "orientation" && killall Dock