Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 741 Bytes

WP-CLI-installation.md

File metadata and controls

35 lines (29 loc) · 741 Bytes

Installation with WP-CLI

wp-cli.yml

path: WP-ROOT
url: WP-HOME-URL
debug: true
user: viktor
core update:
    locale: hu_HU
skip-plugins:
    # Version randomizer
    - better-wp-security

WP-CLI commands.

# Existing database
./wp-createdb.sh

# New installation
wp core download --locale=hu_HU
wp core config --dbname="$DBNAME" --dbuser="$DBUSER" --dbpass="$DBPASS" \
    --dbhost="$DBHOST" --dbprefix="prod" --dbcharset="$DBCHARSET" --extra-php <<EOF
// Extra PHP code
EOF
wp core install --title="WP" \
    --admin_user="viktor" --admin_email="[email protected]" --admin_password="12345"

wp option update home "WP-HOME-URL"
wp option update blog_public 0
wp option update admin_email "[email protected]"