Wondering what’s next for npm?Check out our public roadmap! »

    @twilio/cli-core

    5.25.0 • Public • Published

    twilio-cli-core

    Learn with TwilioQuest

    The default branch name for this repository has been changed to main as of 07/27/2020.

    This module contains core functionality for the twilio-cli.

    Base commands

    BaseCommand

    The base command class for all twilio-cli commands. Includes support for configuration management, logging, and output formatting.

    TwilioClientCommand

    A base command class for commands that need a Twilio client to make API requests. Handles loading credentials from the profile configuration.

    Services

    Output formats

    Formatters to take a JSON array and write to the stdout. Current formatters include:

    • Columns (default, human readable)
    • JSON (raw API output)
    • TSV

    CliRequestClient

    A custom http client for the Twilio helper library to allow us to log API requests as well as modify the User-Agent header.

    Usage with proxy

    • HTTP_PROXY: If using Twilio CLI behind a proxy, set the URL of the proxy in an environment variable called HTTP_PROXY.

    Config

    Manages the CLI configuration options, such as Twilio profiles and credentials.

    Logger

    Standardizes logging output of debug, info, warning, and error messages to stderr (all go to stderr to allow differentiation between command output and logging messages).

    SecureStorage

    An abstraction around the keytar npm package which further abstracts platform-level data encryption services for storing Twilio credentials securely.

    Keywords

    Install

    npm i @twilio/cli-core

    DownloadsWeekly Downloads

    3,980

    Version

    5.25.0

    License

    MIT

    Unpacked Size

    4.19 MB

    Total Files

    63

    Last publish

    Collaborators

    • avatar