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

More setup commands

All setup commands · WordPress WP-CLI 2 cheatsheet

Was this page helpful?