How to trigger a notification from the command line in OSX Yosemite?

onassar picture onassar · Jan 19, 2015 · Viewed 11.4k times · Source

Is there a native-way in OSX to trigger a notification, other than using https://github.com/julienXX/terminal-notifier?

Answer

katenoox picture katenoox · Jan 20, 2015

It is possible with:

osascript -e 'display notification "Notification text" with title "Title"'

For more customization check this answer.