WP-CLI - Download Wordpress, install, and configure it

# $ wp_install <dirname> function wp_install { wp core download --path=$1 cd $1 read -p 'name the database:' dbname wp core config --dbname=$dbname --dbuser=root --dbpass=password --dbhost=localhost wp db create wp core install --prompt }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.