To manage extensions from the command line, you can use the
extension command line utility. The utility provides the following
functions: Installing new extensions, removing existing extensions,
packing the source files of an extension into a ZIP archive ready for
distribution, generating an extension template.
Usage
plesk bin extension <command> [<param>][<option_1> [<param>]][<option_2>]
Read about all commands and options that can be used by the utility in
the CLI Guide for
Linux or for
Windows.
Below are the examples of the actions you can perform with an extension
using the extension utility.
Installing an Extension
Installation of an extension involves the following:
- Extracting data from the archive.
- Execution of the pre-install script.
- Copying the parts of the extension to the specified directories.
- Registration of the extension in the database.
- Execution of the post-install script.
The following is an example of a command for installing an extension:
plesk bin extension -i my-extension.zip
The extension was successfully installed.
You can also install an extension via the Plesk user interface.