Book Contents

Previous Topic

Next Topic

Using CLI API

In This Section

What is CLI in Plesk Expand

Transforming XML to CLI Input

Sample Statement. Creating Domain Using CLI API

Composing Advanced CLI Statements

What is CLI in Plesk Expand

Plesk Expand operators are not intended to be run manually. Instead there's a frontend interface to the Plesk Expand Task Manager which calls them. But sometimes it's necessary to use an operator directly from the command line. In this case a problem arises: XML is too bulky to be used in its full-scale as a command line input argument.

Plesk Expand operators have an additional ability to accept command line input arguments, which they then convert to XML (edible for the operator itself). We assume this interface is more comprehensive and actually reduces typing by 50%-70% rate.

We will refer to the command line interface as CLI in this guide.

Further in this section you will find guidelines on composing CLI statements in subsection Transforming XML to CLI Input, and a sample CLI statement for one of the most typical operations - creating a domain.