GithubHelp home page GithubHelp logo

coderkat-zz / twilio-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from twilio/twilio-cli

0.0 0.0 0.0 944 KB

Unleash the power of Twilio from your command prompt

License: MIT License

Dockerfile 0.16% Makefile 0.08% JavaScript 99.74% Batchfile 0.03%

twilio-cli's Introduction

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

twilio-cli's People

Contributors

dprothero avatar twilio-ci avatar aroach avatar childish-sambino avatar thinkingserious avatar jennifermah avatar alexdlaird avatar maylonpedroso avatar micaswyers-work avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.