Skip to content

Command Line Options

Dialog is configurable through command line options. All options can also be specified using JSON configuration.

Terminal window
dialog --title "Hello" --message "World"

Use --help <option> for detailed information about a specific argument.


ArgumentShortDescription
--title <text>-tSet the dialog title. Use none to hide.
--subtitle <text>Secondary line of text displayed below the title. Also used as subtitle text for notifications.
--message <text>-mSet the dialog message. Supports Markdown.
--messagealignment [left|centre|right]Horizontal alignment of the message
--messageposition [top|centre|bottom]Vertical position of the message content block
--titlefont <params>Modify title font. Accepts comma-separated key=value pairs: colour, size, weight, name, alignment, offset, shadow
--messagefont <params>Modify message font (color, size)

See Title and Message for details.


ArgumentShortDescription
--icon <file|url>-iSet the dialog icon. Accepts file path, URL, SF Symbol (SF=name), or info|caution|warning
--iconsize <num>Icon size in points (default: 150)
--iconalpha <num>Icon opacity from 0.0 (transparent) to 1.0 (opaque)
--iconalttext <text>Accessibility label for the icon
--overlayicon <file|url>-yOverlay image displayed at bottom-right of icon
--hideicon-hHide the icon to increase message area
--centreicon / --centericonReposition icon to centre between title and message

See Icon for details.


ArgumentShortDescription
--bannerimage <file|url>-nDisplay a banner image at the top of the dialog
--bannertitle <text>Display title text overlaid on the banner
--bannertext <text>Equivalent to setting --bannertitle and --title
--bannerheight <num>Set the banner height
--background <file>-bgSet a background/watermark image
--bgalpha <num>-baBackground image opacity (default: 0.5)
--bgposition <position>-bpBackground image position (e.g. center, topleft)
--bgfill [fill|fit]-bfBackground image fill mode
--bgscale [fill|fit]-bsBackground image scale mode

See Banner Images and Background Images for details.


ArgumentShortDescription
--button1text <text>Label for Button 1 (bound to Return ↵, default: OK)
--button1action <url>URL to open when Button 1 is clicked
--button1shellaction <cmd>Shell command to run when Button 1 is clicked
--button1symbol <sf symbol>SF Symbol to display on Button 1
--button1disabledLaunch with Button 1 disabled
--button2-2Show Button 2
--button2text <text>Label for Button 2 (bound to Esc ⎋, default: Cancel)
--button2symbol <sf symbol>SF Symbol to display on Button 2
--button2disabledLaunch with Button 2 disabled
--infobutton-3Show the info button
--infobuttontext <text>Label for the info button
--infobuttonaction <url>URL to open when the info button is clicked
--infobuttonsymbol <sf symbol>SF Symbol to display on the info button
--buttonstyle [center|stack]Button layout style
--buttonsize [mini|small|regular|large]Button size
--buttontextsize <num>Button label font size
--quitoninfoQuit dialog when info button is selected

See Buttons for details.


ArgumentShortDescription
--helpmessage <text>Show a help button with popover content. Supports Markdown.
--helpimage <file|url>Add an image to the help popover
--helpsheetbuttontext <text>Label for the help sheet dismiss button (default: OK)
--helpalignment [left|centre|right]Alignment of help message content

See Help Message for details.


ArgumentShortDescription
--image <file|url>-gDisplay an image. Multiple instances create a carousel.
--imagecaption <text>Caption displayed below the image
--video <file|url>Display a video. Supports youtube=<id> and vimeo=<id> shortcuts.
--videocaption <text>Caption displayed below the video
--autoplayAutoplay video on launch
--webcontent <url>Display a web page in the message area

See Images, Video, and Web Content for details.


ArgumentShortDescription
--infotext <text>Replace the info button with static text
--infobox <text>Display text (Markdown supported) below the icon

See Info Box for details.


ArgumentShortDescription
--textfield <text>[,options]Add a text input field. Supports required, secure, prompt, regex, fileselect and more.
--textfieldlivevalidationShow live regex validation feedback on text fields
--checkbox <text>Add a checkbox with the given label
--checkboxstyle [checkbox|switch][,size]Change checkbox appearance
--selecttitle <text>[,options]Add a dropdown select list with the given name
--selectvalues <csv>Comma-separated values for the select list
--selectdefault <text>Default selected value for the select list
--selectstyleStyle for the select list

See Text Fields, Checkboxes, and Select Lists for details.


ArgumentShortDescription
--listitem <text>Add a list item. Supports status icons and click actions.
--liststyle [expanded|compact]Vertical spacing between list rows
--enablelistselectAllow list items to be selected; selection is returned on exit

See Item Lists for details.


ArgumentShortDescription
--timer [<seconds>]Show a countdown timer (default: 10s). Exits with code 4 on timeout.
--hidetimerbarHide the timer bar while still counting down
--hidetimerHide the timer completely
--progress [<int>]Show a progress bar with the specified number of steps
--progresstext <text>Initial text shown below the progress bar

See Timer & Progress for details.


ArgumentShortDescription
--width <num>Dialog window width in points
--height <num>Dialog window height in points
--small-sDecrease default window size by 25%
--big-bIncrease default window size by 25%
--position <position>Window position (e.g. center, topright, or x,y)
--positionoffset <int>Edge offset when using --position (default: 16)
--moveable-oAllow the window to be dragged
--resizableAllow the window to be resized (implies --moveable)
--ontop-pKeep the window above all other windows
--windowbuttons [close,min,max]Enable window close/minimise/maximise buttons
--showonallscreensShow the window on all connected screens
--appearance [dark|light]Override the window appearance

See Window Size and Layout for details.


ArgumentShortDescription
--style <preset>Apply a preset style: presentation, mini, centered, alert, caution, warning
--miniCompact window showing title, icon and a two-line message
--fullscreen-fFull-screen mode (no buttons; keyboard events still work)
--presentationPresentation mode with progress bar and structured layout
--eulaDisplay in EULA acceptance mode
--blurscreenBlur all screen content behind the dialog window
--hideotherappsHide all other apps on launch

See Full Screen and Presentation for details.


ArgumentShortDescription
--notificationSend a macOS system notification
--identifier <text>-idUnique identifier for the notification
--removeRemove the notification with the matching --identifier
--enablenotificationsoundsEnable notification sounds

See Notifications for details.


ArgumentShortDescription
--sound <file|url>Play an audio file on launch
--showsoundcontrolsShow playback controls (play/pause, mute, timeline)

ArgumentShortDescription
--showdockiconShow the Dialog icon in the macOS Dock
--dockicon <file|url>Show a custom image as the Dock icon (implies --showdockicon)
--dockiconbadge <text>Display a badge on the visible Dock icon

ArgumentShortDescription
--commandfile [<file>]Path to the command file for live dialog updates (default: /var/tmp/dialog.log)
--displaylog <file>Display the contents of a file as it is written
--loghistory [<int>]Pre-populate --displaylog with the last N lines (default: 100)

See Command File for details.


ArgumentShortDescription
--jsonfile <file>Load dialog configuration from a JSON file
--jsonstring <text>Load dialog configuration from a JSON string
--json-jOutput results in JSON format

See JSON Configuration for details.


ArgumentShortDescription
--quitkey <char>Custom quit key (used as ⌘ + <key>, default: q)
--hidedefaultkeyboardactionRequire ⌘ + ⇧ to trigger Return/Esc keyboard actions
--alwaysreturninputAlways return user input on exit regardless of exit code
--ignorednd-dDisplay dialog even when Do Not Disturb is active
--vieworder <csv>Override the display order of input element types

ArgumentShortDescription
--key <string>-kAuthentication key required to launch dialog
--checksum <string>Generate a SHA256 hash (for use with --key)

See Authorization for details.


ArgumentShortDescription
--loginwindowShow the dialog at login window (requires appropriate LaunchAgent)

See Login Window for details.


ArgumentShortDescription
--inspect-modeLaunch in inspect mode
--inspect-config <file>Specify configuration for inspect mode
--inspect-schema <file>Specify schema for inspect mode
--schema-validate <file>Validate a configuration against a schema

See Inspect Mode for details.


ArgumentShortDescription
--version-vPrint the version string
--help [<argument>]Print help, or detailed help for a specific argument
--licence-lPrint the license
--debug [<colour>]Enable debug mode with optional content boundary highlights
--verbose-vvvEnable verbose log output
--listfontsPrint available font names
--demoLaunch in demo mode
--builderLaunch the construction kit UI
--jh-jhEnable jamfHelper compatibility mode

See Builder for details.