gammu

Control and communicate with mobile phones from the command line.

brewmacoslinux
Try with needOr install directly
Source

About

Command-line utility to control a phone

Commands

gammugammu-smsd

Examples

read text messages from phone$ gammu getallsms
send text message to a phone number$ gammu sendsms TEXT +1234567890 'Hello world'
get phone battery and signal strength$ gammu getstatus
backup phone contacts to file$ gammu backup contacts.backup
list all phone contacts$ gammu getallcontacts