WP-CLI

A command line interface for WordPress

Commands » db » create

wp db create - Create a new database.

Quick links: Github issues


Runs CREATE_DATABASE SQL statement using DB_HOST, DB_NAME, DB_USER and DB_PASSWORD database credentials specified in wp-config.php.

EXAMPLES

$ wp db create
Success: Database created.