• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Check Plesk License Status from CLI

Sysop

Basic Pleskian
I know there's the following command(s) to check an activation status:
Bash:
$ plesk bin license -c
Although that doesn't return anything.

There's also:
Bash:
$ plesk bin license -i <license>
Which does return some information about a license when trying to install it, however, is it possible check without the activation number? Is there a way to return the status of the currently installed license without knowing the activation code?
 
Try to use this command:

# plesk bin license -c && echo "The license key is valid" || echo "The license key is invalid"
 
Try to use this command:

# plesk bin license -c && echo "The license key is valid" || echo "The license key is invalid"

Hi IgorG,

When I try the command it returns "The license key is invalid" every time for a trial license (it works with a paid license). The trial license I tried it with is still valid.

Does it not work on a trial license? Is there a way to check the validity of a trial license, or know how many days are left?

Thank you.
 
Back
Top