Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Keeping Plugins Up-To-Date


When developing Flex Plugins, there are three sets of versions that you want to keep updated:

  1. The Flex Plugins CLI version that provides the tooling required for building and managing plugins
  2. The flex-plugin version of your plugin's development environment
  3. The versions of the plugins you create

Each of these is managed independently. Updating the Flex Plugins CLI won't automatically update the development environment of your existing plugins. This allows you to trial new features in your latest plugins without risking backwards-incompatible changes in your other codebases.


Upgrade Flex Plugins CLI

upgrade-flex-plugins-cli page anchor

To identify the latest version release available, run the following command:


_10
$ npm show @twilio-labs/plugin-flex
_10
_10
1.0.0

To identify the version installed in your development environment, run the following command:


_10
$ twilio plugins
_10
_10
@twilio-labs/plugin-flex 4.8.0

Refer to our Upgrade Guide if your installed version is behind the latest available version.

(warning)

Warning

If you aren't using the Flex Plugins CLI or don't have the Twilio CLI installed to run the twilio command, then you may be running Flex using legacy plugins. Refer to our migration guide for updating your plugins to use the Flex Plugins CLI.


Upgrade flex-plugin dependencies

upgrade-flex-plugin-dependencies page anchor

Existing plugin directories are not automatically updated to use the latest features from the Flex Plugins CLI. These must be individually migrated to add new build scripts or apply updated dependencies. You can verify the version of your plugin by checking the flex-plugin dependency within your plugin's package.json.


_10
"dependencies": {
_10
"flex-plugin": "4.0.0",
_10
...,
_10
}

In your plugin directory, run the following command using the CLI. This command upgrades and installs your plugin dependencies to be compatible to use the latest version of Plugins CLI.


_10
twilio flex:plugins:upgrade-plugin --install

The command updates the scripts and the dependencies in the package.json of your plugin. This command will not override any of the changes you made in the package.json.

To upgrade your plugin to be compatible with Flex UI 2.x, run the following command:


_10
twilio flex:plugins:upgrade-plugin --flexui2

Check out our Migration Guide to determine the necessary steps for your plugin upgrade.

Check additional dependencies

check-additional-dependencies page anchor

As you develop your plugins, you may include dependencies in addition to the ones we've provided as part of the create-flex-plugin template. The npm-check-updates(link takes you to an external page) package can check all of the dependencies in your package.json and identify the latest available versions. To use this package:

  1. Install npm-check-updates globally.

_10
npm install -g npm-check-updates

  1. Run the ncu command in the root directory of your plugin to display any new dependencies for the project.

_10
ncu
_10
Checking ~/plugin-sample/package.json
_10
[====================] 21/21 100%
_10
_10
craco-config-flex-plugin ^3.0.0 → ^3.0.1
_10
_10
Run ncu -u to upgrade package.json

  1. Update any of the identified dependencies in your package.json and run another npm install .

Upgrade which plugin versions are live

upgrade-which-plugin-versions-are-live page anchor

If you have been using the Flex Plugins CLI to deploy and release your plugins, you can confirm which versions are live by running the following command.


_10
twilio flex:plugins:describe:release --active

An example output is shown below:

Active Release.

For each active plugin, you can identify the latest available version using the describe:plugin command. For example:


_10
twilio flex:plugins:describe:plugin --name plugin-agent-notes

describe plugin.

You must generate a new plugin release to update Flex to use the latest version of your plugins. If we wanted to update plugin-agent-notes, and this is the only plugin active for your agents, you'd use the following command:


_10
twilio flex:plugins:release --description "Integrating notes with CRM" --name "Agent Notes v5" --plugin plugin-agent-notes@5.0.0

You can also change the version of a plugin by using the Plugins Dashboard. Refer to the Plugins Dashboard Usage Guide for more details.


Rate this page: