andreascreten/wp-cli — pull request #38 by matiskay (2011-10-27 17:13:59+00:00)
Title: Sql Command

Add Sql Command and 3 subcommands

cli Open a SQL command-line interface using Wordpress's credentials.
connect A string for connecting to the DB.
dump Exports the wordpress DB as SQL using mysqldump or equivalent.
query Execute a query against the site database.