DEV Community

Cover image for How to send SMS in 5 seconds right from your Terminal?
Rohan Sawant
Rohan Sawant

Posted on

How to send SMS in 5 seconds right from your Terminal?

📨Shell-SMS-Shender

A Simple command line tool to send SMS from the command line using the Twilio API.

Send SMSes Swiftly right from your Shell

Alt Text

GitHub logo CT83 / Shell-SMS-Shender

A Simple command line tool to send SMS from the command line using the Twilio API.

Getting Started

  1. Clone the repo. git clone https://github.com/CT83/Shell-SMS-Shender.git, cd into it
  2. chmod 775 sss-client
  3. Head to the Twilio console. Either log-in or sign up for a free account, and look for the Account Summary, make sure you have already bought a Twilio Phone Number. Alt Text
  4. Copy the credentials and your phone number in a new file .config, and add it to the root of the repo, like so.```bash

ACCOUNTSID=XXXXXXXXXXXXXXXXXXXXXXXX
AUTHTOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXX
CALLERID=507-697-0XXX

5. Done! Type `./sss-client` 

### License

MIT License. You are free to do anything. 🙃

### References

I found [this](https://www.twilio.com/labs/bash/sms) too by Twilio while researching, I modified it to suit my needs.
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
davemcdavid profile image
davemcdavid

Here is a single one line curl command in linux terminal to send SMS text messages with textgun.io.

curl -i --user username:password -d "number=19179362841&message=hello world!" textgun.io/send-sms