The WFU WordPress CLI (wfuwp) is a comprehensive command-line tool designed for managing Wake Forest University's WordPress multisite infrastructure. It provides automated workflows for database migrations, S3 synchronization, EC2 instance management, and development environment configuration.
- Getting Started Guide - Start here if you're new!
- Quick Reference - Command cheat sheet for quick lookups
- Installation - Detailed installation and system requirements
- Commands Reference - Detailed documentation for all CLI commands
- Configuration - Setting up multi-environment configurations
- Migration Workflows - Complete guide to database migration processes
- Visual Workflows - ASCII diagrams showing how processes work
- Troubleshooting - Common issues and solutions
- Command-Specific Troubleshooting - Issues by command
- Architecture - Technical architecture and design patterns
- Development - Contributing and development guidelines
-
Install the CLI tool:
npm install -g @wfu/wp-cli
-
Run the configuration wizard:
wfuwp config wizard
-
Verify your configuration:
wfuwp config verify
-
Start using commands:
wfuwp migrate 43 --from prod --to pprd wfuwp syncs3 --from prod --to uat wfuwp listips
- Automated Workflows: Complete export/import/transform pipelines
- Multi-Environment Support: Seamless migrations between dev/uat/pprd/prod
- WordPress Multisite: Full support for main site and subsites
- Safety Features: Automatic backups, pre-flight checks, and rollback capabilities
- S3 Integration: Optional file synchronization with migrations
- Bucket Synchronization: Transfer WordPress files between environments
- Automatic Backups: Archive SQL exports to S3 with metadata
- Incremental Sync: Efficient transfers with AWS CLI
- Instance Listing: Quick view of all EC2 instances and IPs
- SSH Connections: Direct SSH access to instances
- DNS Management: Spoof/unspoof domains for local development
- Encrypted Storage: Secure credential management
- Multi-Environment: Separate configs for dev/uat/pprd/prod
- Interactive Wizard: Guided setup process
- Validation Tools: Verify connectivity and permissions
- Node.js: Version 18 or higher
- Docker: Required for WP-CLI database operations
- AWS CLI: Required for S3 and EC2 features
- MySQL Client: For direct database connections (optional)
- Operating System: macOS, Linux, or WSL2 on Windows
The tool supports four standard WordPress environments:
- Development (dev): Local development and testing
- UAT (uat): User acceptance testing
- Pre-Production (pprd): Staging environment
- Production (prod): Live production site
- Credentials are encrypted using AES-256-GCM
- Configuration stored in
~/.wfuwp/config.json - SSH key authentication for EC2 instances
- AWS IAM roles for S3 access
- No credentials in command history
Internal tool for Wake Forest University IT Services.
For issues or questions:
- Check the Troubleshooting Guide
- Review the Commands Reference
- Contact the WFU IT Services team