WP-CLI is Your Friend

A Command Line Interface for WordPress

in WordPress Tips & Tutorials