Skip to content

Instantly share code, notes, and snippets.

@kbcarte
Created April 6, 2022 15:27
Show Gist options
  • Save kbcarte/243066f9cf8ef800670992970b04ae02 to your computer and use it in GitHub Desktop.
Save kbcarte/243066f9cf8ef800670992970b04ae02 to your computer and use it in GitHub Desktop.
Install wp-rocket cli and import a previously exported json settings file.

wp cli is usually installed as just wp, but sometimes you may find it called wp-cli instead.

/path/to/wp-rocket-settings-backup.json is the exported json file from wp-rocket. Replace with the path and file name of the json file on your server or cluster.

  • $ wp package install --allow-root wp-media/wp-rocket-cli:trunk
  • $ wp rocket import --file=/path/to/wp-rocket-settings-backup.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment