npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@twilio-labs/plugin-token

v6.1.2

Published

Generate a temporary token for use in test applications

Readme

@twilio/plugin-token

Generate a temporary token for use in a Twilio client-side SDK application

Requirements

Setup

Head over to the twilio-cli documentation.

Usage

$ twilio plugins:install @twilio-labs/plugin-token
$ twilio --help token
USAGE
  $ twilio token
...

Commands

twilio token:capability:client

USAGE
  $ twilio token:capability:client --voice-app-sid <value> --identity <value> [-l (debug|info|warn|error|none)] [-o
    (columns|json|tsv|none)] [--silent] [-p <value>] [--allow-incoming true|false] [--push-credential-sid <value>]
    [--ttl <value>]

FLAGS
  -l=(debug|info|warn|error|none)    [default: info] Level of logging messages.
  -o=(columns|json|tsv|none)         [default: columns] Format of command output.
  -p, --profile=<value>              Shorthand identifier for your profile.
      --allow-incoming=<option>      [default: true] Allow incoming calls (true/false) (defaults to true)
                                     <options: true|false>
      --identity=<value>             (required) The user identity
      --push-credential-sid=<value>  The Push Credential SID for receiving incoming call push notifications, starts with
                                     CRXXX
      --silent                       Suppress  output and logs. This is a shorthand for "-l none -o none".
      --ttl=<value>                  Optional TTL for token (up to 24 hours) (value in seconds)
      --voice-app-sid=<value>        (required) The TwiML Application SID for outbound calls, starts with APXXX

See code: src/commands/token/capability/client.js

twilio token:capability:worker

USAGE
  $ twilio token:capability:worker --worker-sid <value> --workspace-sid <value> [-l (debug|info|warn|error|none)] [-o
    (columns|json|tsv|none)] [--silent] [-p <value>] [--ttl <value>]

FLAGS
  -l=(debug|info|warn|error|none)  [default: info] Level of logging messages.
  -o=(columns|json|tsv|none)       [default: columns] Format of command output.
  -p, --profile=<value>            Shorthand identifier for your profile.
      --silent                     Suppress  output and logs. This is a shorthand for "-l none -o none".
      --ttl=<value>                Optional TTL for token (up to 24 hours) (value in seconds)
      --worker-sid=<value>         (required) The Worker SID for this token
      --workspace-sid=<value>      (required) The Workspace SID for this token

See code: src/commands/token/capability/worker.js

twilio token:chat

USAGE
  $ twilio token:chat --identity <value> --chat-service-sid <value> [-l (debug|info|warn|error|none)] [-o
    (columns|json|tsv|none)] [--silent] [-p <value>] [--ttl <value>]

FLAGS
  -l=(debug|info|warn|error|none)  [default: info] Level of logging messages.
  -o=(columns|json|tsv|none)       [default: columns] Format of command output.
  -p, --profile=<value>            Shorthand identifier for your profile.
      --chat-service-sid=<value>   (required) The service SID for the Chat, starts with ISXXX
      --identity=<value>           (required) The user identity
      --silent                     Suppress  output and logs. This is a shorthand for "-l none -o none".
      --ttl=<value>                Optional TTL for token (up to 24 hours) (value in seconds)

See code: src/commands/token/chat.js

twilio token:flex

USAGE
  $ twilio token:flex --worker-sid <value> --workspace-sid <value> [-l (debug|info|warn|error|none)] [-o
    (columns|json|tsv|none)] [--silent] [-p <value>] [--ttl <value>]

FLAGS
  -l=(debug|info|warn|error|none)  [default: info] Level of logging messages.
  -o=(columns|json|tsv|none)       [default: columns] Format of command output.
  -p, --profile=<value>            Shorthand identifier for your profile.
      --silent                     Suppress  output and logs. This is a shorthand for "-l none -o none".
      --ttl=<value>                Optional TTL for token (up to 24 hours) (value in seconds)
      --worker-sid=<value>         (required) The Worker SID for this token
      --workspace-sid=<value>      (required) The Workspace SID for this token

See code: src/commands/token/flex.js

twilio token:sync

USAGE
  $ twilio token:sync --identity <value> --sync-service-sid <value> [-l (debug|info|warn|error|none)] [-o
    (columns|json|tsv|none)] [--silent] [-p <value>] [--ttl <value>]

FLAGS
  -l=(debug|info|warn|error|none)  [default: info] Level of logging messages.
  -o=(columns|json|tsv|none)       [default: columns] Format of command output.
  -p, --profile=<value>            Shorthand identifier for your profile.
      --identity=<value>           (required) The user identity
      --silent                     Suppress  output and logs. This is a shorthand for "-l none -o none".
      --sync-service-sid=<value>   (required) The service SID for the Sync, starts with ISXXX
      --ttl=<value>                Optional TTL for token (up to 24 hours) (value in seconds)

See code: src/commands/token/sync.js

twilio token:video

USAGE
  $ twilio token:video --identity <value> [-l (debug|info|warn|error|none)] [-o (columns|json|tsv|none)]
    [--silent] [-p <value>] [--room-name <value>] [--ttl <value>]

FLAGS
  -l=(debug|info|warn|error|none)  [default: info] Level of logging messages.
  -o=(columns|json|tsv|none)       [default: columns] Format of command output.
  -p, --profile=<value>            Shorthand identifier for your profile.
      --identity=<value>           (required) The user identity
      --room-name=<value>          The name of the room this token grants access to
      --silent                     Suppress  output and logs. This is a shorthand for "-l none -o none".
      --ttl=<value>                Optional TTL for token (up to 24 hours) (value in seconds)

See code: src/commands/token/video.js

twilio token:voice

USAGE
  $ twilio token:voice --voice-app-sid <value> --identity <value> [-l (debug|info|warn|error|none)] [-o
    (columns|json|tsv|none)] [--silent] [-p <value>] [--allow-incoming true|false] [--push-credential-sid <value>]
    [--ttl <value>]

FLAGS
  -l=(debug|info|warn|error|none)    [default: info] Level of logging messages.
  -o=(columns|json|tsv|none)         [default: columns] Format of command output.
  -p, --profile=<value>              Shorthand identifier for your profile.
      --allow-incoming=<option>      [default: true] Allow incoming calls (true/false) (defaults to true)
                                     <options: true|false>
      --identity=<value>             (required) The user identity
      --push-credential-sid=<value>  The Push Credential SID for receiving incoming call push notifications, starts with
                                     CRXXX
      --silent                       Suppress  output and logs. This is a shorthand for "-l none -o none".
      --ttl=<value>                  Optional TTL for token (up to 24 hours) (value in seconds)
      --voice-app-sid=<value>        (required) The TwiML Application SID for outbound calls, starts with APXXX

See code: src/commands/token/voice.js

Contributing

This project welcomes contributions from the community. Please see the CONTRIBUTING.md file for more details.

Code of Conduct

Please be aware that this project has a Code of Conduct. The tldr; is to just be excellent to each other ❤️

License

MIT