Import settings file and refresh Domain Key via CLI




Wordpress LScache Plugin: Import settings file and refresh Domain Key via CLI

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi! I was wondering if there were some commands that could be used (a bash script most likely) that would allow me to load a settings.data file from the server which contains preconfigured settings, as well as a command to Refresh the Domain Key, as importing said data file manually overwrites the old Key for some reason (likely because I exported the settings file from a website with a Key already configured) So basically I need help with 2 things. 1) How to import LScache settings via CLI 2) Is it possible to Refresh domain key via CLI Appreciate all help and ideas in advance Hi, please check https://docs.litespeedtech.com/lscache/lscwp/cli/#import-options and https://docs.litespeedtech.com/lscache/lscwp/cli/#generate-api-key best regards, Thank you, got a working solution out of that.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference