• Resolved qsdnxu

    (@qsdnxu)


    Hi,

    First of all thanks to your plugin, it works well although as I have about 500K image it is really down my site when I try to clean it.

    I would like run wp-cli under plesk but I can not find out the right command.

    I ma trying to use this: wp sirsc rawcleanup
    Plesk writes I should use a from something like this:

    ‘To call a WP-CLI command via the Plesk command-line interface:

    Connect to your Plesk server via SSH (on Linux) or via RDP (on Windows) and, in the command line, run the command:

    plesk ext wp-toolkit –wp-cli -instance-id [ID] [command] [options]

    Examples:
    To get the main WordPress information (a blog name, a website URL, a version, an update version, plugins, and themes):
    
    plesk ext wp-toolkit --wp-cli -instance-id 4 -- core info
    To get help for the core command:
    
    plesk ext wp-toolkit --wp-cli -instance-id 4 -- help core
    To install and activate the latest version of the bbPress plugin from www.ads-software.com:
    
    plesk ext wp-toolkit --wp-cli -instance-id 4 -- plugin install bbpress --activate

    So I am trying with this:
    plesk ext wp-toolkit –wp-cli -instance-id 7 — wp sirsc rawcleanup

    But I get this: Error: ‘wp’ is not a registered wp command. See ‘wp help’ for available commands.

    Could you help me to correct the command?

    Many thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Iulia Cazan

    (@iulia-cazan)

    Hi,

    Looking at the command that works, I think you could write it like
    plesk ext wp-toolkit --wp-cli -instance-id 7 -- sirsc rawcleanup, removing the extra wp in the second part.

    Have a nice day,
    Iulia

    Thread Starter qsdnxu

    (@qsdnxu)

    Hi Iulia,

    Thank you very much for your answer and time you are spending on me.
    I decided simply skip plesk and install wp-cli directly. There is one issue I am facing now, when I give the command wp sirsc rawcleanup id1 It writes:

    Please specify the post type (one of: post, page, wp_template_part, wp_global_styles, wp_navigation, wpforms, acf-field-group, acf-field, user_registration, product, product_variation, vc_grid_item, postman_sent_mail, vc4_templates, etc).

    What is the command to delete simply all the images except the originals without adding any additional terms?

    Plugin Author Iulia Cazan

    (@iulia-cazan)

    The command can be wp sirsc rawcleanup 1 all. For verbose, you can run instead wp sirsc rawcleanup 1 all --show-info.
    If you run in multisite, change1 with the blog id where you want to cleanup, otherwise leave it like that.

    • This reply was modified 3 years, 1 month ago by Iulia Cazan.
    • This reply was modified 3 years, 1 month ago by Iulia Cazan.
    Thread Starter qsdnxu

    (@qsdnxu)

    God bless you it works ?? Many thanks! I bought you a coffe ??

    Plugin Author Iulia Cazan

    (@iulia-cazan)

    Glad it solved your issue and thank you for the coffee! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wp sirsc rawcleanup how to run it properly’ is closed to new replies.