2017 © Pedro Peláez
 

command wp-rocket-cli

Add a `wp rocket` command to support the WP Rocket plugin

image

geekpress/wp-rocket-cli

Add a `wp rocket` command to support the WP Rocket plugin

  • Thursday, May 21, 2015
  • by ronilaukkarinen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 655 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

WP CLI interface for WP Rocket

This repository contains a WP-CLI command for the WP Rocket plugin. After installing this plugin, you will have access to a wp rocket command., (*1)

Supported commands

  • wp rocket activate-cache --htaccess=<true|false> -- Set WP_CACHE to true and clean WP Rocket cache. To also update the htaccess on Apache, use the additional htaccess parameter.
  • wp rocket deactivate-cache --htaccess=<true|false> -- Set WP_CACHE to false and clean WP Rocket cache. To also update the htaccess on Apache, use the additional htaccess parameter.
  • wp rocket clean --post_id=<post_id> --permalink=<permalink> --lang=<lang> --blog_id=<blog_id> -- Purge cache files.
  • wp rocket clean --confirm -- Purge cache files without prompting for confirmation (usefull for automation tools/scripts)
  • wp rocket preload -- Preload cache files.
  • wp rocket regenerate --file=<file> -- Regenerate .htaccess, advanced-cache.php or the WP Rocket config file.
  • wp rocket regenerate --file=config --nginx=true -- regenerate the config file on Nginx hosts.
  • wp rocket cdn --enable=<enable> --host=<host> --zone=<zone> -- Enable / Disable CDN with the specified host and zone.
  • wp rocket export -- Exports the WP Rocket settings as a json file to the current directory.
  • wp rocket import --file=settings.json -- Imports the settings contained in the provided json file.

Installing

If you're using WP-CLI v0.23.0 or later, you can install this package with:, (*2)

wp package install wp-media/wp-rocket-cli, (*3)

The Versions

21/05 2015

dev-master

9999999-dev https://github.com/GeekPress/wp-rocket-cli

Add a `wp rocket` command to support the WP Rocket plugin

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cache wp-cli rocket

23/05 2014

1.0

1.0.0.0 https://github.com/GeekPress/WP-Rocket-CLI

Add a `wp rocket` command to support the WP Rocket plugin

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

cache wp-cli rocket