installPlugin

New in version 1.30.22.

Syntax

installPlugin(pluginName, [pluginVersion], [pluginServerAddr])

Details

installPlugin downloads and decompresses the specified plugin into your DolphinDB plugins directory. It returns the full path of the installed plugin description file, which is required when loading the plugin.

Note: Use listRemotePlugins to get a list of all the plugins available for installation on your system along with their version information.

Arguments

pluginName a string indicating the plugin name.

pluginVersion (optional) a string indicating the plugin version to install. If it is not specified, the latest version will be installed.

pluginServerAddr a string indicating the HTTP address of the DolphinDB plugins repository that the system should use. It is recommended to specify it as “http://plugins.dolphindb.com/plugins/”.

Examples

Download the mysql plugin:

$ installPlugin("mysql", "http://plugins.dolphindb.com/plugins/")
/home/DolphinDB_Linux64/server/plugins/mysql/PluginMySQL.txt

Load the plugin via loadPlugin:

$ loadPlugin("/home/DolphinDB_Linux64/server/plugins/mysql/PluginMySQL.txt")

Related functions: listRemoteLists, loadPlugin