WordPress CLI command generator:
Show homedir, sitedir and plugins echo && echo && echo "SITE URL: " && wp option get siteurl && echo "SITE HOME: " && wp option get home && echo && wp site list || true && echo && echo "ENABLED PLUGINS:" && wp plugin list| egrep -v '^name.*status.*'| grep -v inactive | egrep --color=never '.*[^n]active.*|$' && echo && echo "IMPORTANT PLUGINS:" && wp plugin list| egrep -v '^name.*status.*'| grep -v inactive | egrep '(elementor|wordfence|woocommerce|revslider|avada|fusion|wp-super-cache|w3-total-cache|litespeed-cache).' && echo && echo
WP cli --dry-run:
WP cli:
WP cli ELEMENTOR:wp elementor flush_css wp elementor sync_library
Find cache files (todo):find . -iname cache
Install Cache:wp plugin install wp-super-cache && wp plugin activate wp-super-cachewp plugin install w3-total-cache && wp plugin activate w3-total-cachewp plugin install litespeed-cache && wp plugin activate litespeed-cache
SRDB cli: