LinuxCommandLibrary

plesk

Manage Plesk server configurations

TLDR

Generate an auto login link for the admin user and print it

$ plesk login
copy

Show product version information
$ plesk version
copy

List all hosted domains
$ plesk bin domain --list
copy

Start watching for changes in the panel.log file
$ plesk log [panel.log]
copy

Start the interactive MySQL console
$ plesk db
copy

Open the Plesk main configuration file in the default editor
$ plesk conf [panel.ini]
copy

SYNOPSIS

plesk command [options] [arguments]

PARAMETERS

--help
    Displays help information for the plesk command or a specific subcommand.

--version
    Shows the installed Plesk version.

subcommand
    The specific action to perform. Examples include domain, customer, db, service, installer, repair, bin, ext, etc.
Each subcommand has its own set of unique options and arguments.

DESCRIPTION

The plesk command is the main entry point for managing Plesk Panel installations from the command line.
It provides a robust set of subcommands and options to automate and script various administrative tasks, including domain creation, customer management, database operations, service control, and system updates.
It's essential for administrators who prefer shell access or need to perform bulk operations and integrate Plesk management into existing automation workflows.
It interacts directly with the Plesk internal API and database, offering a powerful alternative to the web-based GUI for advanced management.

CAVEATS

Most operations executed via the plesk command require root or sudo privileges.
Incorrect usage, especially with powerful subcommands like db or repair, can lead to data loss or service disruption.
The command is only available on servers with a Plesk Panel installation.
Syntax and available subcommands may vary slightly between different Plesk versions.

AUTOMATION AND SCRIPTING

The plesk command is extensively used for automating administrative tasks, such as provisioning new domains, managing customer accounts, migrating data, and integrating Plesk functionalities into custom scripts and external systems.

OUTPUT FORMATS

Many plesk subcommands support various output formats, including XML, JSON, and CSV, which facilitates parsing and processing command output in scripts for automated workflows and data analysis.

HISTORY

Plesk Panel has been a prominent web hosting control panel since the early 2000s, evolving from its roots as Confixx.
The command-line utility has developed in parallel with the graphical user interface, providing administrators with a powerful tool for server management, automation, and scripting.
Its modular design allows for a flexible structure, enabling new functionalities to be seamlessly integrated as subcommands, reflecting the panel's expanding capabilities.

SEE ALSO

systemctl(1), mysql(1), crontab(1), grep(1), awk(1)

Copied to clipboard