components: Manage Server Components
The components utility allows you to manage Windows server components.
You can use this utility to enable and disable components, as well as assign application packages to a component.
You can also use this utility to update an application package.
Location
%plesk_cli%
Usage
components <command> [
<option_1> [<param>]
[<option_2> [<param>]]
]
Examples
The following command lists all components and their associated packages:
plesk bin components --list
The following command assigns the drweb package to the antivirus component, so that subscriptions can use Dr. Web’s Premium Antivirus as their antivirus.
plesk bin components --set-package -component antivirus -package drweb
The following command shows all configuration parameters for the smartermail_remote package:
plesk bin components --show-package-parameters -package smartermail_remote
The following command configures the SmarterMail package to accept the example credentials:
plesk bin components --set-package-parameters -package smartermail_remote 'host=localhost' 'login=example' 'password=123456'
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
Displays help on the utility usage. |
To view help on the use of this utility: plesk bin components --help |
|
|
Lists all information from all components. |
To list all components’ information: plesk bin components --list |
|
|
Shows all available configuration parameters for a specific package. |
To show all configuration parameters for the plesk bin components --show-package-parameters -package smartermail_remote |
|
|
Sets the parameters of a specific package. |
To configure the SmarterMail package to accept the following credentials: plesk bin components --set-package-parameters -package smartermail_remote 'host=localhost' 'login=example' 'password=123456' |
|
|
Assigns a specific package to a component. |
To assign the plesk bin components --set-package -component antivirus -package drweb |
Options
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
Specifies the component to modify. Used with |
To assign the plesk bin components --set-package -component antivirus -package drweb |
|
|
Specifies the package to modify. Used with |
To disable the plesk bin components --set-package -package drweb -disable |
|
|
Enables a package. If a component is not specified, the component is enabled globally. Used with |
To enable the plesk bin components --set-package -package smartermail_remote -enable |
|
|
Disables a package. If a component is not specified, the component is disabled globally. Used with |
To disable the plesk bin components --set-package -package smartermail_remote -disable |
Package-Specific Parameters
The --show-package-parameters parameter returns package-specific parameters, including both required and optional parameters. The return will resemble the following example:
plesk bin components --show-package-parameters -package smartermail_remote
Required parameters:
host(string) - Hostname (current: localhost)login(string) - User login (current: example)password(string) - Login Password (current:***)port(int) - Port (current: 111)
Optional parameters:
ssl (bool)- HTTPS protocol (current: false)ssl_cert_failure_check(bool) - Check SSL certificate (current: true)
These parameters show their data types and current statuses. They can be modified with the --set-package-parameters parameter by adding an updated value of the correct data type.
For example, the following command modifies the smartermail_remote package to use the HTTPS protocol to connect securely:
plesk bin components --set-package-parameters -package smartermail_remote 'ssl:true'