0.6.0 • Published 4 years ago

twilio-remote-cli v0.6.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Twilio Remote CLI

npm version npm Known Vulnerabilities Commitizen friendly

A remote control for your Twilio API

Prerequisites

The CLI has dependencies that require Node 6 or higher, together with NPM 3 or higher.

You will also need a Twilio account and phone number that can send SMS messages (you can sign up for a Twilio account for free here).

Table of Contents

Installation

BEFORE YOU INSTALL: please read the prerequisites

Install Globally

npm install -g twilio-remote-cli

Run from npm without installing

npx twilio-remote-cli

Install a specific version (Example: 0.0.1)

npm install -g twilio-remote-cli@0.0.1

Usage

  $ twilio-remote --help

  Usage
    $ twilio-remote

  Options
    --call,    -c   Perform a call against a given number
    --digits   -d   Send some digits to the number when the call is answered
    --sms,     -s   Deliver an sms to a given number (to be used in combination of --message)
    --message, -m   The message to be delivered to the given number (requires the --sms flag)

  Example
    $ twilio-remote
    $ twilio-remote -c +1234567890
    $ twilio-remote -c +1234567890 -d 123
    $ twilio-remote -s +1234567890 -m Allo!

Then just follow the instructions on your terminal.

Options

--call, -c

Perform a call against a given number

$ twilio-remote -c +1234567890
--digits, -d

NOTE This flag must be used in combination with --call

Send some DTMF (Dual-Tone Multi-Frequency Tones) tones to the number when the call is answered. Have a look at Twilio Studio Flow. Learn more how to use the Gather Input On Call Twilio Widget from here

If a certain number requires to enter a code when the call is answered, you can use twilio-remote in this way:

$ twilio-remote -c +1234567890 -d 123
--sms, -s

Deliver an sms to a given number NOTE This flag must be used in combination with --message

$ twilio-remote -s +1234567890 -m Allo!
--message, -m

The message to be delivered to the given number NOTE This flag must be used in combination with --sms

$ twilio-remote -s +1234567890 -m Allo!

Configuration

Twilio Remote CLI make uses of the Twilio API by accessing you personal Twilio account. We need to configure the application with our Twilio credentials. Gather your Twilio Account Sid and Auth Token from the Twilio console along with a Twilio phone number that can send SMS messages.

Run the Twilio Remote CLI with

twilio-remote

Then select the Setup Twilio Account option and enter all the required information.

Sending SMS

Making calls

License

MIT


Created with 🦄 by andreasonny83

0.6.0

4 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago