Command Line Tool#
The dockflow command lets you list and apply presets from Terminal, scripts, and shell workflows.
Install#
Open Settings → Advanced → Command Line Tool.
- dockflow Command
- Click Install to put the
dockflowcommand in/usr/local/binso it is available from Terminal. macOS may ask for your administrator password. The status shows Installed, Not Installed, or Needs Repair. Use Reinstall to repair it and Uninstall to remove it.
Under More Options you can also:
- Shell Aliases — Add a
dockflowalias to your shell config instead of installing a binary in/usr/local/bin. Click Add for your shell, then reload your shell with the command DockFlow shows. - Run Without Installing — Run the tool directly from its full path. Copy the path from Settings.
Commands#
dockflow list- List all available presets with their IDs.
dockflow apply --name "Work"- Apply a preset by name. The short form is
-n.
dockflow apply --id 1- Apply a preset by the ID shown in
dockflow list. The short form is-i.
dockflow get-apps- Show the apps that are in the Dock right now.
Options for apply#
--skip-if-active- Do nothing if this preset is already active. The tool also honors the Skip reapplying the current preset setting.
--native- Use the native macOS
defaultsmethod instead of dockutil. See Advanced Settings.
Run dockflow --help or dockflow apply --help for the full list.
Example#
# See your presets
dockflow list
# Switch to the Work preset
dockflow apply --name "Work"