litesoup includes a command-line interface for managing your WordPress servers. All commands auto-escalate to root via sudo.
The CLI is installed automatically when you run install-stack.sh:
litesoup --version
litesoup help# Install the full stack (Apache, PHP, MariaDB, Redis, ...)
litesoup stack install
# Update to latest version
litesoup stack update# Create a fresh site
litesoup site create --domain=example.com --tls=letsencrypt --email=admin@example.com
# Import existing site (git + DB dump + URL replace)
litesoup site import \
--domain=example.com \
--git-repo=git@github.com:org/repo.git \
--db-dump=/tmp/site-db.sql.gz \
--old-url=https://olddomain.com \
--tls=letsencrypt --email=admin@example.com
# Auto-deploy on git push
litesoup site set-webhook --domain=example.com# Back up a site locally
litesoup backup site --domain=example.com
# Back up to S3
litesoup backup site --domain=example.com --dest=all
# Restore from backup
litesoup backup restore --domain=example.com
# List backups
litesoup backup list --domain=example.com
# Configure S3/email
litesoup backup configure --s3-bucket=my-backups --email=admin@example.comlitesoup harden firewall
litesoup harden fail2ban
litesoup harden ssh --no-password-auth
litesoup harden apache
litesoup harden phplitesoup audit system
litesoup audit wp-health --domain=example.com
litesoup audit wp-vulnerabilities