imessage-ruby

Send iMessages from the command line on macOS

brewmacoslinux
Try with needOr install directly
Source

About

Command-line tool to send iMessage

Commands

imessage-ruby

Examples

Send a simple message to a phone number$ imessage-ruby send +1234567890 'Hello from CLI'
Send a message to a contact by name$ imessage-ruby send 'John Doe' 'Your message here'
Send a message with special characters or spaces$ imessage-ruby send +1234567890 'Meeting at 3pm tomorrow?'