terminal-notifier

Send macOS User 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

Send a simple notification with title and message$ terminal-notifier -title 'Hello' -message 'This is a test notification'
Send notification with custom subtitle and sound$ terminal-notifier -title 'Build Complete' -subtitle 'Success' -message 'Project compiled successfully' -sound default
Send notification that executes a command when clicked$ terminal-notifier -title 'Download Ready' -message 'Click to open file' -execute 'open ~/Downloads/file.zip'