|
| 1 | +# @twilio-labs/plugin-rtc |
| 2 | + |
| 3 | +[](https://circleci.com/gh/twilio-labs/plugin-rtc/tree/master) |
| 4 | + |
| 5 | +This plugin adds functionality to the [Twilio CLI](https://github.com/twilio/twilio-cli) which supports developing and deploying real-time communication apps. |
| 6 | + |
| 7 | +* [Getting Started](#getting-started) |
| 8 | +* [Supported Apps](#supported-apps) |
| 9 | +* [Commands](#commands) |
| 10 | + |
| 11 | +# Getting Started |
| 12 | + |
| 13 | +## Install the Twilio CLI |
| 14 | + |
| 15 | +Via `npm` or `yarn`: |
| 16 | + |
| 17 | +```sh-session |
| 18 | +$ npm install -g twilio-cli |
| 19 | +$ yarn global add twilio-cli |
| 20 | +``` |
| 21 | + |
| 22 | +Via `homebrew`: |
| 23 | + |
| 24 | +```sh-session |
| 25 | +$ brew tap twilio/brew && brew install twilio |
| 26 | +``` |
| 27 | + |
| 28 | +See the [Twilio CLI documentation](https://www.twilio.com/docs/twilio-cli/quickstart) for more information. |
| 29 | + |
| 30 | +## Install the plugin |
| 31 | + |
| 32 | +```sh-session |
| 33 | +$ twilio plugins:install @twilio-labs/plugin-rtc |
| 34 | +``` |
| 35 | + |
| 36 | +# Supported Apps |
| 37 | + |
| 38 | +This plugin currently supports the following applications: |
| 39 | + |
| 40 | +## Twilio Video App |
| 41 | +A mobile and web collaboration application built with Programmable Video. Visit the projects below for instructions on how to use this plugin to build and deploy the Twilio Video app. |
| 42 | + |
| 43 | + * [React App](https://github.com/twilio/twilio-video-app-react) |
| 44 | + * [iOS App](https://github.com/twilio/twilio-video-app-ios) |
| 45 | + * [Android App](https://github.com/twilio/twilio-video-app-android) |
| 46 | + |
| 47 | + |
| 48 | +# Commands |
| 49 | + <!-- commands --> |
| 50 | +* [`twilio rtc:apps:video:delete`](#twilio-rtcappsvideodelete) |
| 51 | +* [`twilio rtc:apps:video:deploy --authentication <auth>`](#twilio-rtcappsvideodeploy---authentication-auth) |
| 52 | +* [`twilio rtc:apps:video:view`](#twilio-rtcappsvideoview) |
| 53 | + |
| 54 | +## `twilio rtc:apps:video:delete` |
| 55 | + |
| 56 | +Delete a Programmable Video app |
| 57 | + |
| 58 | +``` |
| 59 | +USAGE |
| 60 | + $ twilio rtc:apps:video:delete |
| 61 | +
|
| 62 | +OPTIONS |
| 63 | + -l=(debug|info|warn|error|none) [default: info] Level of logging messages. |
| 64 | + -o=(columns|json|tsv) [default: columns] Format of command output. |
| 65 | + -p, --profile=profile Shorthand identifier for your profile. |
| 66 | +
|
| 67 | +EXAMPLE |
| 68 | + $ twilio rtc:apps:video:delete |
| 69 | + Removed app with Passcode: 1111111111 |
| 70 | +``` |
| 71 | + |
| 72 | +## `twilio rtc:apps:video:deploy --authentication <auth>` |
| 73 | + |
| 74 | +Deploy a Programmable Video app |
| 75 | + |
| 76 | +``` |
| 77 | +USAGE |
| 78 | + $ twilio rtc:apps:video:deploy --authentication <auth> |
| 79 | +
|
| 80 | +OPTIONS |
| 81 | + -l=(debug|info|warn|error|none) [default: info] Level of logging messages. |
| 82 | + -o=(columns|json|tsv) [default: columns] Format of command output. |
| 83 | + -p, --profile=profile Shorthand identifier for your profile. |
| 84 | + --app-directory=app-directory Name of app directory to use |
| 85 | + --authentication=(passcode) (required) Type of authentication to use |
| 86 | + --override Override an existing App deployment |
| 87 | +
|
| 88 | +DESCRIPTION |
| 89 | + This command publishes two components as a Twilio Function: an application token |
| 90 | + server and an optional React application. |
| 91 | +
|
| 92 | + Token Server |
| 93 | + The token server provides Programmable Video access tokens and authorizes |
| 94 | + requests with the specified authentication mechanism. |
| 95 | +
|
| 96 | + React Application |
| 97 | + The commands includes support for publishing a Programmable Video React |
| 98 | + Application. For more details using this plugin with the Programmable Video |
| 99 | + React application, please visit the project's home page. |
| 100 | + https://github.com/twilio/twilio-video-app-react |
| 101 | +
|
| 102 | +EXAMPLES |
| 103 | + # Deploy an application token server with passcode authentication |
| 104 | + $ twilio rtc:apps:video:deploy --authentication passcode |
| 105 | + deploying app... done |
| 106 | + Passcode: 1111111111 |
| 107 | +
|
| 108 | + # Deploy an application token server with the React app |
| 109 | + $ twilio rtc:apps:video:deploy --authentication passcode --app-directory /path/to/app |
| 110 | + deploying app... done |
| 111 | + Web App URL: https://video-app-1111-dev.twil.io?passcode=1111111111 |
| 112 | + Passcode: 1111111111 |
| 113 | +
|
| 114 | + # Override an existing app with a fresh deployment |
| 115 | + # Please note that this will remove a previously deployed web application if no |
| 116 | + # app directory is provided |
| 117 | + $ twilio rtc:apps:video:deploy --authentication passcode --override |
| 118 | + Removed app with Passcode: 1111111111 |
| 119 | + deploying app... done |
| 120 | + Passcode: 2222222222 |
| 121 | + Expires: Mon Mar 09 2020 16:36:23 GMT-0600 |
| 122 | +``` |
| 123 | + |
| 124 | +## `twilio rtc:apps:video:view` |
| 125 | + |
| 126 | +View a Programmable Video app |
| 127 | + |
| 128 | +``` |
| 129 | +USAGE |
| 130 | + $ twilio rtc:apps:video:view |
| 131 | +
|
| 132 | +OPTIONS |
| 133 | + -l=(debug|info|warn|error|none) [default: info] Level of logging messages. |
| 134 | + -o=(columns|json|tsv) [default: columns] Format of command output. |
| 135 | + -p, --profile=profile Shorthand identifier for your profile. |
| 136 | +
|
| 137 | +EXAMPLE |
| 138 | + $ twilio rtc:apps:video:view |
| 139 | + Web App URL: https://video-app-1111-dev.twil.io?passcode=1111111111 |
| 140 | + Passcode: 1111111111 |
| 141 | +``` |
| 142 | +<!-- commandsstop --> |
0 commit comments