If you have a use case where you want to trigger a Notification Alert on your Mac using the terminal, you can do that using the osascript display notification command,
Example:osascript -e 'display notification "Message!" with title "Title"'
Output:

Trigger Notification Center alert message using macOS Terminal Command
You can also add subtitle to the notification using subtitle, example,

Notification with Subtitle
% osascript -e '
display notification "This is a test message!"
with title "This is test Title"
subtitle "This is subtitle"'
More Posts related to MacOS,
- Add Line Break in Microsoft Excel Cell on Mac (macOS)
- How to view the desktop when using macOS Stage Manager?
- Mac - How to Install VirtualBox
- Must Know Homebrew Commands for Mac/Linux Users
- Show Desktop Keyboard Shortcut on Mac
- Check Reboot History Mac
- How to set Out Of Office (OOO) on Outlook for Mac
- How to Screenshot on Mac Ventura 13 - Step by Step Guide
- How to install maven in macOS using Terminal Command
- How to change macOS Safari default language
- How to hide or display Wifi icon in macOS Bug Sur Menu Bar
- Permanently Set or Change $JAVA_HOME on Mac (macOS)
- Two Ways to Extract rar (*.rar) files on Mac
- How to change Ping TTL value on macOS
- How to upgrade Docker Desktop on Mac
- [fix] macOS Ventura xcrun: error: invalid active developer path missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- Installing brew on M1/M2 ARM Mac
- How to increase macOS Terminal text font size (Big Sur)
- How to open new tab in Sublime Text Editor [macOS]
- macOS: Change Weather App Temperature unit from Fahrenheit to Degree
- Clear SFTP Prompt Screen on macOS Terminal
- How to install homebrew (brew) on M1 Mac
- [Fix] brew: command not found Mac or Linux Terminal Error
- How to download and install macOS 13 Ventura
- How to install Zoom Add-in to Outlook (Mac)
More Posts:
- Must Know Homebrew Commands for Mac/Linux Users - MacOS
- [Fix] Steam Friends Network Unreachable Error - HowTos
- Mac - Chrome Open a new window in Incognito mode - Chrome
- How to Sync Microsoft Teams Calendar with Mac Calendar - Microsoft
- Deep Dive: Java Object Class from java.lang Package - Java
- cURL Option to show HTTP Response Status Code - cURL
- How to check zsh installed version using terminal - MacOS
- Tutorial Java SOAP WebServices JAS-WS with Eclipse J2EE IDE and Tomcat Server Part 1 - Java