terminal-notifier

Send macOS notifications from the command line.

brewmacoslinux
Try with needOr install directly
Source

About

Send macOS User Notifications from the command-line

Commands

terminal-notifier

Examples

show a simple notification with a title and message$ terminal-notifier -title 'Hello' -message 'This is a test'
send notification when a script or command finishes$ terminal-notifier -title 'Build Complete' -message 'Your build finished successfully'
display notification with a custom app icon$ terminal-notifier -title 'Alert' -message 'Warning' -appIcon /path/to/icon.png
send notification with sound and action button$ terminal-notifier -title 'Reminder' -message 'Meeting in 5 minutes' -sound default -actions 'Join,Snooze'
notify when a background job completes$ long_running_process && terminal-notifier -title 'Done' -message 'Process finished'