Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

twilio-cli

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twilio-cli

unleash the power of Twilio from your command prompt

  • 1.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.8K
increased by32.81%
Maintainers
1
Weekly downloads
 
Created
Source

A CLI for Twilio

npm version Travis Build StatusAppveyor Build Statuscodecov

⚠⚠⚠⚠ Pre-release software warning ⚠⚠⚠⚠

This software is in pre-release status and not currently supported. We are looking for community feedback on what type of CLI tool would be the most useful for Twilio users.

⚠⚠⚠⚠

Prerequisites

  1. Node.js >= 8.0
  2. Running on Linux? Depending on your distribution, you will need to run the following command:
    Debian/Ubuntu: sudo apt-get install libsecret-1-dev
    Red Hat-based: sudo yum install libsecret-devel
    Arch Linux: sudo pacman -S libsecret

Eventually, the plan is to have self-contained packages for *nix systems and an installer for Windows with no need for manually installing prerequisites.

Setup

You can install twilio-cli via npm or Homebrew (macOS or Linux).

NPM

  1. Install the CLI globally: npm install -g twilio-cli
  2. Now you can run the CLI from anywhere using the twilio command.

Homebrew

  1. brew tap twilio/brew && brew install twilio
  2. Now you can run the CLI from anywhere using the twilio command.

Troubleshooting

Updating

  1. Check if there's a new version: npm outdated -g twilio-cli
  2. Update the CLI globally: npm update -g twilio-cli

Versioning

twilio-cli uses a modified version of Semantic Versioning for all changes. See this document for details.

Basic usage

Step 1 - Login (aka add a project)

twilio login

This is for caching your credentials for your existing Twilio account (aka Project) locally. You will be prompted for a shorthand identifier for your Twilio project. This is referred to as the "project ID", which is just an easy to remember, short string to identify the project. (If you've used git before, it's like the name you assign to a remote like "origin".)

Note, while you are prompted for your Account SID and Auth Token, these are not saved. An API Key is created (look for "twilio-cli for [username] on [hostname]" in the console) and stored in your system's keychain.

For details on how to work with multiple Twilio accounts/projects or use environment variables, see the projects section.

Step 2 - Explore

twilio

Lists all available commands.

twilio phone-numbers:list

Lists all your phone numbers.

Add --help to any command to get help (e.g. twilio phone-numbers:list --help)

General usage

See the General usage guide.

Contributing

  1. Clone this repo.
  2. From the repo directory, run: npm install
  3. Run ./bin/run from the repo directory to run the CLI.

Feedback

Please file a GitHub issue in this repository for any feedback you may have.

License

MIT

Keywords

FAQs

Package last updated on 26 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc