Using the Command Line: Bash and WP-CLI
summary
Shows concrete commands and scripts that speed Wordpress work: bash basics (ls, cd, cat, grep), package installs (apt‑get, npm), piping with xargs and curl, and WP‑CLI for tasks like regenerate thumbnails, deactivate all plugins, update core/plugins, clear caches and export/import. Demonstrates a backup-and-rebuild script that aims to pull live XML, import locally, create 25 posts with featured images and restore — the demo sometimes fails but the scripts run and expose pitfalls (permissions, sudo, timeouts). Emphasizes tail -f for live logs and pv for progress on big imports.
AI-written summary · about
chapters (11)
- 0:00Introduction to command line
- 1:07Why use command line
- 4:18Navigating in Bash
- 9:37File manipulation basics
- 15:43Useful commands and pipes
- 23:17Installing packages with sudo
- 28:41Beyond basics with NPM
- 33:13Introduction to WP-CLI
- 37:52WP-CLI practical examples
- 40:23Live demo of WP-CLI scripts
- 45:02Q&A and closing
