WordPress WP-CLI 2 · Setup
Create wp-config.php
Write wp-config.php with your database details. Use real credentials.
wp config create --dbname=wordpress --dbuser=wp_user --dbpass=change-me --dbhost=localhost
Official WordPress WP-CLI 2 documentation