title: Install WordPress using bash shell without visiting /wp-admin/install.php?
body: <p>I wrote this little BASH script that creates a folder,unzips Wordpress and creates a database for a site.</p>
  
  <p>The final step is actually installing Wordpress, which usually involves pointing your browser to install.php and filling out a form in the GUI.</p>
  
  <p>I want to do this from the BASH shell, but can't figure out how to invoke wp_install() and pass it the parameters it needs: </p>
  
  <p>-admin_email<br>
  -admin_password<br>
  -weblog_title<br>
  -user_name</p>
  
  <p>(line 85 in install.php)</p>
  
  <p>Here's a similar question, <a href="https://stackoverflow.com/questions/5732384/automate-wordpress-install-from-python">but in python</a></p>
  
  <pre><code>#!/bin/bash
  
  #ask for the site name
  echo "Site Name:"
  read name
  # make site directory under splogs
  mkdir /var/www/splogs/$name
  dirname="/var/www/splogs/$name"
  #import wordpress from dropbox
  cp -r  ~/Dropbox/Web/Resources/Wordpress/Core $dirname
  cd $dirname
  #unwrap the double wrap
  mv Core/* ./ 
  rm -r Core
  mv wp-config-sample.php wp-config.php 
  sed -i 's/database_name_here/'$name'/g' ./wp-config.php
  sed -i 's/username_here/root/g' ./wp-config.php
  sed -i 's/password_here/mypassword/g' ./wp-config.php
  cp -r ~/Dropbox/Web/Resources/Wordpress/Themes/responsive $dirname/wp-content/t$
  cd $dirname
  
  CMD="create database $name"
  mysql -uroot -pmypass -e "$CMD"
  </code></pre>
  
  <p>How do I alter the script to automatically run the installer without the need to open a browser?</p>