CLI Reference

CLI Commands

The wpl CLI is installed globally during setup. Run wpl with no arguments to launch the interactive terminal dashboard.

CommandDescription
wplLaunch interactive terminal dashboard
wpl startStart all Docker Compose services
wpl stopStop all services
wpl restartRestart all services
wpl rebuildRebuild and restart services after code changes
wpl statusShow service status
wpl logs [service]Tail logs for a service (api, provisioner, traefik, etc.)
wpl sitesList all active WordPress sites
wpl openOpen dashboard in browser
wpl open mailOpen Mailpit email testing UI
wpl open <subdomain>Open a specific site in browser
wpl shell <subdomain>Bash into a site's container
wpl wp <subdomain> <command>Run WP-CLI command inside a site
wpl build:wpRebuild WordPress base images
wpl dirPrint the WP Launcher install directory
wpl versionShow version and git commit
wpl updatePull latest code, rebuild, and restart
wpl helpShow help text

Admin Commands

CommandDescription
wpl admin:promote <email>Promote a user to admin role
wpl admin:demote <email>Demote an admin to regular user

WP-CLI Examples

# List plugins on a site
wpl wp coral-sunset-7x3k plugin list

# Install a plugin
wpl wp coral-sunset-7x3k plugin install contact-form-7 --activate

# Export the database
wpl wp coral-sunset-7x3k db export - > backup.sql

# Create a user
wpl wp coral-sunset-7x3k user create editor [email protected] --role=editor

# Update WordPress
wpl wp coral-sunset-7x3k core update

npm Scripts

Alternative to the wpl CLI — run from the project root:

ScriptDescription
npm startStart all services
npm stopStop all services
npm run rebuildRebuild and restart
npm run statusShow service status
npm run logsTail all service logs