Support » Plugin: SiteGround Optimizer » How-to access WP CLI commands

  • Resolved crstauf

    (@crstauf)


    I reviewed the sg-cachepress (v5.7.15) plugin code, and see that the command definitions reference wp sg <command>, however, it does not appear that sg is a registered command. How to enable access to the WP CLI commands?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    Hey there @crstauf, you should be able to use the WP CLI commands straight out of the box. I am posting the full list f the available WP CLI commands here. They are also available in the readme of the plugin.

    wp sg purge (url) – purges the entire cache or if URL is passed
    wp sg memcached enable|disable – enables or disables Memcached
    wp sg forcehttps enable|disable – enables or disables HTTPS for your site
    wp sg optimize – enables or disables different optimization options for your site:
    wp sg optimize html enable|disable – enables or disables HTML minification
    wp sg optimize js enable|disable – enables or disables JS minification
    wp sg optimize css enable|disable – enables or disables CSS minification
    wp sg optimize combine-css enable|disable – enables or disables CSS combination
    wp sg optimize combine-js enable|disable – enables or disables JS combination
    wp sg optimize querystring enable|disable – enables or disables query strings removal
    wp sg optimize emojis enable|disable – enables or disables stripping of the Emoji scripts
    wp sg optimize images enable|disable – enables or disables New image optimization
    wp sg optimize webp enable|disable – enables or disables WebP image optimization
    wp sg optimize lazyload enable|disable – enables or disables Lazy loading of images
    wp sg optimize gzip enable|disable – enables or disables Gzip compression for your site
    wp sg optimize browsercache enable|disable – enables or disables Browser caching rules
    wp sg optimize dynamic-cache enable|disable – enables or disables Dynamic caching rules
    wp sg optimize web-fonts enable|disable – enables or disables Web Fonts Optimization
    wp sg optimize fix_insecure_content enable|disable – enables or disables Insecure Content Fix
    wp sg optimize database-optimization enable|disable – enables or disables the DB Optimization
    wp sg optimize dns-prefetch enable|disable add|remove|urls – enables or disables the DNS Prefetching, add, remove or list urls.
    wp sg optimize heartbeat-control enable|disable frontend|dashboard|post –frequency= enables or disables the Heartbeat control for a specific location and sets the frequency
    wp sg status dynamic-cache|autoflush-cache|mobile-cache|html|js|js-async|css|combine-css|querystring|emojis|images|lazyload_images|lazyload_gravatars|lazyload_thumbnails|lazyload_responsive|lazyload_textwidgets|gzip|browser-caching|memcache|ssl|ssl-fix|web-fonts|combine-js|webp – returns optimization current status (enabled|disabled)
    wp sg settings export – exports the current plugin settings
    wp sg settings import –hash= – imports plugin settings and applies them

    Kind regards,
    Stoyan

    Thread Starter crstauf

    (@crstauf)

    Well, today it works. Strange.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.