CLI Reference

36 commands across 9 categories.

fx site create <domain>

Create a new WordPress site with NGINX, database, and FastCGI cache.

fx site create example.com
fx site delete <domain>

Delete a WordPress site, database, and all configs.

fx site delete example.com
fx site list

List all WordPress sites with status.

fx site info <domain>

Show paths, SSL, cache stats, disk usage.

fx site info example.com
fx ssl install <domain>

Install Let's Encrypt SSL with HTTPS redirect and HSTS.

fx ssl install example.com
fx ssl renew <domain>

Renew SSL certificate.

fx ssl renew example.com
fx ssl remove <domain>

Remove SSL and revert to HTTP.

fx ssl remove example.com
fx auth on <domain>

Enable HTTP Basic Auth for wp-login.php.

fx auth on example.com
fx auth off <domain>

Disable HTTP Basic Auth.

fx auth off example.com
fx auth add <domain> <user>

Add Basic Auth user.

fx auth add example.com admin
fx auth remove <domain> <user>

Remove an auth user.

fx auth remove example.com admin
fx db password <domain>

Change DB password and update wp-config.php.

fx db password example.com
fx db create <name>

Create database with random password.

fx db create mydb
fx db delete <name>

Delete database and user.

fx db delete mydb
fx db list

List all databases with sizes.

fx db export <db>

Export database to SQL.gz.

fx db export example_com
fx db import <db> <file>

Import SQL file into database.

fx db import example_com backup.sql
fx cache clear

Clear NGINX FastCGI cache.

fx cache status

Show cache size, file count, hit/miss stats.

fx php version

Display current PHP version.

fx php list

List installed PHP versions.

fx php switch <ver>

Switch PHP version. Updates all configs.

fx php switch 8.3
fx php restart

Restart PHP-FPM.

fx backup create <domain>

Full backup: files + database.

fx backup create example.com
fx backup list

List backups with sizes and dates.

fx backup restore <file>

Restore from backup.

fx backup restore file.tar.gz
fx pma install

Install phpMyAdmin on port 8080.

fx pma remove

Remove phpMyAdmin.

fx adminer install

Install Adminer on port 8081.

fx adminer remove

Remove Adminer.

fx files install

Install TinyFileManager.

fx files remove

Remove File Manager.

fx status

Status of all services.

fx version

Display FlashXpress version.

fx update

Update to latest version.

fx help

Show all commands.