You are here

CLI tools

Submitted by Alan Mels on Fri, 03/19/2021 - 01:22

Here is the list of some useful commands


0) Before migrating large websites run the following command to clear all cache related tables.

echo "SELECT CONCAT('DELETE FROM ', GROUP_CONCAT(TABLE_NAME SEPARATOR ';DELETE FROM ') , ' cache;' ) AS statement FROM information_schema.TABLES WHERE TABLE_NAME LIKE 'cache_%'" | drush sqlc --extra=--skip-column-names | drush sqlc

1) Certbot commands

certbot delete --cert-name www.herculesindustries.com
certbot certonly --webroot -w /home/hercules/public_html -d herculesindustries.com -d www.herculesindustries.com -m ssl@altagrade.com --agree-tos --non-interactive --quiet